Results 1 to 3 of 3

Thread: open for input/output...2dim. array?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Posts
    537
    Hi there,
    I don't get this stuff at all.

    I have three text boxs named,strFirst,strMiddle,strLast.

    I need to write these three strings to a file for later use.

    I am not sure how to do this so I can then repopulate a seperate form using those three records. I know how to do it with one record but how do I fill in three seperate labels with three seperate strings from one file?

    any help or suggestions would be great.
    thank you
    pnj

  2. #2
    Guest
    To save the strings to a file
    Code:
    Open "MyFile.txt" For Output As #1
    Write #1, strFirst, strSecond, strThird
    Close #1
    To retrieve them from the file
    Code:
    Open "MyFile.txt" For Input As #1
    Input #1, sOne, sTwo, sThree
    Close #1
    
    strFirst.Text = sOne
    strSecond.Text = sTwo
    strThird.Text = sThree

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Posts
    537

    cool thanks

    thank you that seems simple enough.
    pnj

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width