|
-
May 6th, 2000, 01:14 AM
#1
Thread Starter
Lively Member
I have a few more questions. I am using Visual Basic 4 Standard.
1) I have a line of code like this in my program,
Code:
Print #I, Form1.league, Form1.standings, Form1.race, Form1.racedate, Form1.name01, Form1.name02, Form1.name03, Form1.name04, Form1.name01, Form1.name02, Form1.name03, Form1.name04, Form1.name05, Form1.name06, Form1.name07, Form1.name08, Form1.name09, Form1.name10, Form1.name11, Form1.name12, Form1.name13, Form1.name14, Form1.name15, Form1.name16, Form1.name17, Form1.name18, Form1.name19, Form1.name20, Form1.name21, Form1.name22, Form1.name23, Form1.name24, Form1.name25, Form1.name26, Form1.name27, Form1.name28, Form1.name29, Form1.name30, Form1.name31, Form1.name32
Is there any way to put this on more than one line? (Eg, word wrap)
2) I am using the following code to save information from text boxes to a .txt document.
Code:
Private Sub Command1_Click()
Text1 = Text1 + Text2
For I = 1 To 1
filename = (Text1) ' Create filename.
Open (Text1) For Output As #I ' Open file.
Print #I, Form1.league, Form1.standings, Form1.race, Form1.racedate, Form1.name01, Form1.name02, Form1.name03, Form1.name04, Form1.name01, Form1.name02, Form1.name03, Form1.name04, Form1.name05, Form1.name06, Form1.name07, Form1.name08, Form1.name09, Form1.name10, Form1.name11, Form1.name12, Form1.name13, Form1.name14, Form1.name15, Form1.name16, Form1.name17, Form1.name18, Form1.name19, Form1.name20, Form1.name21, Form1.name22, Form1.name23, Form1.name24, Form1.name25, Form1.name26, Form1.name27, Form1.name28, Form1.name29, Form1.name30, Form1.name31, Form1.name32
' Write string to file.
Close ' Close open files.
Next I
Text1 = ""
Form5.Visible = False
End Sub
How do I set a default directory for this to be saved in? I want it to go into the install directory of the user (the folder where they chose to install the program)
3) I would like to load a text document which was saved into the proper text boxes.
I am using the code above to save, and was wondering how to make it so the text loads into the proper text boxes.
A screenshot of the form is below:
http://www.homestead.com/wrestlecarr...ngscarsdir.jpg
The code above is only for the first column of the left hand side of the form (name). How can I load the text document into this so it places the proper names into the boxes?
Any help is greatly appreciated
Thank You
Wrestlecar
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|