-
Aug 20th, 2008, 02:45 PM
#1
Thread Starter
Addicted Member
List1.AddItem
Hi!
I need when I open a APP, it open a .txt, get all LINES and each line of .txt is 1 ITEM in the List1.
it's possible? thanks!
-
Aug 20th, 2008, 02:59 PM
#2
Member
Re: List1.AddItem
Dim sText as string
Open "c:\example.txt" for input as #1
do
lineinput #1, sText
list1.additem sText
loop while not eof(#1)
-
Aug 20th, 2008, 02:59 PM
#3
Frenzied Member
Re: List1.AddItem
Code:
Dim intFile As Integer
intFile = FreeFile
Open App.Path & "\Test.txt" For Input As #intFile
'Do While Not EOF(intIFF)
Do Until EOF(intFile)
Line Input #intFile, strInputData
List1.additem strInputData
Loop
Close #intFile
I'll Be Back!
T-1000
Microsoft .Net 2005
Microsoft Visual Basic 6
Prefer using API
-
Aug 20th, 2008, 03:00 PM
#4
Frenzied Member
Re: List1.AddItem
Sorry PeteLeeb.
I'll Be Back!
T-1000
Microsoft .Net 2005
Microsoft Visual Basic 6
Prefer using API
-
Aug 20th, 2008, 03:22 PM
#5
Member
Re: List1.AddItem
LOL.. no worries Liquid Metal..
We just provided twice as much help..
-
Aug 20th, 2008, 03:41 PM
#6
Re: List1.AddItem
no probs as you both posted at the same time without your knowledge...it happens at times...;-)
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
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
|