Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text file data into multiple textboxes

Status
Not open for further replies.

vwalla

Technical User
Feb 25, 2004
22
US
How can I open a text file & have the data inside the text file load into the appropriate text boxes?

I am using no delimination (14 spc columns)

Thanks
 
Can you be more speciffic?
What exactly do you understand by "appropriate text boxes"?
How do you decide if a text box is appropriate or not?
Then we'll be able to help you.
 
Dim intF As Integer
Dim strX As String

intF = FreeFile
Open "data.txt" For Input As intF
While Not EOF(intF)
Line Input #intF, strX
Text1.Text = Left(strX, 14)
Text2.Text = Mid(strX, 15, 14)
Text3.Text = Mid(strX, 30, 14)
... etc, etc.
Wend
Close intF


Andy
--
"Logic is invincible because in order to combat logic it is necessary to use logic." -- Pierre Boutroux
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top