load text file in a listbox
2 posters
Page 1 of 1
load text file in a listbox
Create the Followinf function:
Code:
Public Function LoadList(locat As String, lister As ListBox)
On Error Resume Next
Dim nFileNumm As Integer, sNextLinee As String, lLineCountt As Long
nFileNumm = FreeFile
Open locat For Input As nFileNumm
lLineCountt = 1
Do While Not EOF(nFileNumm)
Line Input #nFileNumm, sNextLinee
lLineCountt = lLineCountt + 1
lister.AddItem sNextLinee
Loop
Close nFileNumm
End Function
Call the above function like:
Code:
Private Sub Command1_Click()
LoadList "E:\log.ini", List1
End Sub
Code:
Public Function LoadList(locat As String, lister As ListBox)
On Error Resume Next
Dim nFileNumm As Integer, sNextLinee As String, lLineCountt As Long
nFileNumm = FreeFile
Open locat For Input As nFileNumm
lLineCountt = 1
Do While Not EOF(nFileNumm)
Line Input #nFileNumm, sNextLinee
lLineCountt = lLineCountt + 1
lister.AddItem sNextLinee
Loop
Close nFileNumm
End Function
Call the above function like:
Code:
Private Sub Command1_Click()
LoadList "E:\log.ini", List1
End Sub
sabeen_11- Posts : 22
Points : 22
Reputation : 0
Join date : 2013-02-08
Similar topics
» Download and load online image in picture box
» WEMCv5 [Warriors Extreme Multy Creator] by mjridoy5 crecked by dody ( team destroyerd )
» radixel kicking tool(crack) full fee
» Make your won mig33 file
» HOW TO EDIT STRINGS IN A JAR FILE?
» WEMCv5 [Warriors Extreme Multy Creator] by mjridoy5 crecked by dody ( team destroyerd )
» radixel kicking tool(crack) full fee
» Make your won mig33 file
» HOW TO EDIT STRINGS IN A JAR FILE?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Thu Apr 09, 2020 3:53 am by love62
» Dark B00mb3r by fajiil-(free)
Mon Apr 11, 2016 3:22 pm by me.punk.7
» ID creator with proxy changer and gmail dot generator
Sat Apr 09, 2016 7:47 pm by me.punk.7
» Unlimited Ids Login , Balance And Level Checker
Sat Apr 09, 2016 7:45 pm by me.punk.7
» Multy credit transfer project
Sun Feb 21, 2016 6:53 am by rezkiye
» Sockmix v2.6 Fresh Project
Fri Nov 20, 2015 12:08 pm by papeshh
» Offline Registration SYstem And Key Generator By DevelopMig33.Tk
Fri Nov 20, 2015 12:08 pm by papeshh
» All Ocx Box
Thu Oct 22, 2015 7:26 am by papeshh
» multy maker + auto activator ( updated )
Thu Oct 22, 2015 7:15 am by papeshh