|
-
May 19th, 2002, 05:55 PM
#1
Thread Starter
New Member
Loading Data
I would like to know how to load several lines of data from a file, to a form.
-
May 19th, 2002, 06:03 PM
#2
-= B u g S l a y e r =-
saving and loading text from/into textbox's sample
VB Code:
Private Sub Command1_Click()
'Save the text
Open "C:\TEST.TXT" For Output As #1
Write #1, Text1.Text
Close #1
End Sub
Private Sub Command2_Click()
'Load the text
Open "C:\TEST.TXT" For Input As #1
Text1.Text = Input(LOF(1), 1)
Close #1
End Sub
if that is not what u want, u have to elaborate a bit
-
May 19th, 2002, 06:10 PM
#3
Hyperactive Member
Beaten to it by 7mins..... dam proxy caching pages, don't i look the gormless d!@$
From a text file it's...........
Code:
Dim strX As String
Dim intX As Integer
intX = FreeFile
Open "PATH" For Input As #intX
Do Until EOF(intX)
Input #intX, strX
Print strX
Loop
Close #intX
This reads the text file one line at a time and prints it to the form.
Last edited by -=XQ=-; May 19th, 2002 at 06:13 PM.
See ya later,
-=XQ=-
"Reality is merely an illusion, albeit a very persistent one. "
- Albert Einstein (1879-1955)
This is the coolest site ever!!!
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
|