Jump to content

Probably easy for an actual programmer (i'm not one) form question need expert advice

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
frozensteam

frozensteam

    Newbie

  • Members
  • Pip
  • 1 posts
Like I said, this is probably easy for an actual programmer. This is what I have:

VB6 using MS visual studio 6.0.

Its a form (that you can create using the template right on there) with just custom text boxes and radio buttons. The form is created, but I don't have anywhere to upload the image. So use this image as example(not actual but very very close! just did a google image search) actual stuffs i'm working with is attached

::forum wouldn't let me post an image :(

What I need to do is: When I click the apply button, have all of the values go into a text document. So for example, if there's two text boxes and an 'APPLY' button, the form closes and writes "contents of text box 1" to the first line of the text doc and 'contents of text box 2' to the second line. If there's checkboxes then just say yes or no to a seperate line of the doc. Once I get past this roadblock I can manipulate the txt file and do what I need to do.

I appreceiate any help. Like I said I'm not a programmer but can write a batch file like the best of them

Attached Files



#2
dragon_kcn

dragon_kcn

    Newbie

  • Members
  • PipPip
  • 21 posts
I can give you some information on hadling file.
You can open file with the 'open' command.

  open "filename.ext" for output as #1

  '       filaname          open mode   number

And you can write any data to the file opened with write(or put) command.
See MSDN for more information.
Finally, you should close the file you opened.

  Close #1