Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8177463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:31:00+00:00 2026-06-06T23:31:00+00:00

yes I’m a heathen using VBScript client side..Actually I’m fascinated by HTAs and am

  • 0

yes I’m a heathen using VBScript client side..Actually I’m fascinated by HTAs and am trying to use VBscript in one… Anyways.. The overall goal of this is to be able to write input to a txt file… I’m running into a error message “Object required” it’s pointing back to my FormContent variable I’m using to store the input information… I’m not sure whats going on here, I figure either A) I’m failing miserably B) I don’t properly understand how the value is being pulled C) I fail… (Also as a side note I will be addeding in validation later, so don’t bark at me :[ Any ideas on what’s going on?

<html>
<HTA:APPLICATION 
     APPLICATIONNAME="HerpDerp"></HTA:APPLICATION>
     <head>
         <meta content="en-us" http-equiv="Content-Language">
         <!--Using VBscript to write data to file (create object, open, append, write, close). -->
         <script type="text/vbscript">
         Sub Submit_OnClick
            dim filesys, filetxt, FormContent
            Set FormContent =  document.getElementById(Text1)
            Set filesys = CreateObject("Scripting.FileSystemObject")
            Set filetxt = filesys.OpenTextFile("C:\\MyFile.txt", 8, True) 
            filetxt.WriteLine(FormContent.value)
            filetxt.Close  
        End Sub         

        </script>

     </head>
<form name="Form1">
<p><input name='Text1' style="width: 671px; height: 112px" type='text' id='Text1'></p>
<p><input name='Submit' style="width: 215px" type='button' value='Submit'></p>
</form>

</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T23:31:04+00:00Added an answer on June 6, 2026 at 11:31 pm

    Text1 is a string. You need to treat it as such (enclose it in quotes).

    HOWEVER…. As a general suggestion, don’t use HTA. HTA is an antiquated set of technologies written over a decade ago and pretty much completely unmaintained by Microsoft.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Yes, I want to use GIMP to create a transparent image with some text
Yes, yes, I've weighed using an xml parser instead of regular expressions, but this
Yes that sounds overly complicated. I am trying to mine data from pages on
Yes, yes. Shame on me. I am trying to draw in UIView and my
Yes Vista sucks... I'm writing a Windows Service using .Net but getting security errors
yes this is one of my homework projects - to implement a Circular Linked
Yes, getting the class name by using an exception is a plausible solution, but
Yes, There's More Than One Way To Do It but there must be a
Yes, I know you could use regular objects as associative arrays in JavaScript, but
Yes, the problem is with a library I'm using, and no, I cannot modify

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.