|
-
Oct 8th, 2006, 12:47 PM
#1
Thread Starter
Lively Member
[RESOLVED] how to get data from a specific line?
I want to get data from a file? how to put data in line 2 to a textbox, data in line 3 to a textbox and continue..........
i using code below but come an error "type mismatch" and ReDim Preserve MyArray(i) was highlighted.
Dim temp As String, MyArray As Variant
Open "filename.txt" For Input As #1
While Not EOF(1)
ReDim Preserve MyArray(i)
Line Input #1, MyArray(i)
i = i + 1
Wend
Close
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
|