|
-
Feb 21st, 2001, 04:12 PM
#1
Thread Starter
Addicted Member
In a text file which I am loading for commentary in a game, I have a line with "P# passes to R#." In the game, before this text file loads, I already set P# and R# as variables, except under the names T1P1 (as string) and T1R1 (ditto).
How do I make it so that P# = T1P1 and R# = T1R1 when the text file loads? I am already using this code to load the file, so I'd be grateful if u could copy it and add in the code for doing what I want...
Private Sub Form_Load()
Randomize
Dim i As Integer, intCount As Integer, o As Integer
i = FreeFile
Open "C:\WINDOWS\Profiles\Michael's Desktop\My Documents\comment.txt" For Input As #i
Input #1, intCount
For o = 1 To intCount
Line Input #i, strEntranceOne(o)
Next o
End Sub
Cheers...
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
|