![]() |
Retrieving information from files
hi
i have this code which retrive the information from file by write on text1 and the information show in text 2 and text 3 and text 4 Code:
how can i retrieve the information all files and show it in listbox |
Re: Retrieving information from files
Quote:
You are also dimensioning your variables wrong. Quote:
Dim X As String, Y As String, z As String Do you want to use 1 ListBox or 3? Open f For Input As #5 Input #5, X, Y, z List1.AddItem X List2.AddItem Y List3.AddItem z Close #5 As a general rule when you add Strings f = f + Text1.Text you use f = f & Text1.Text Avoid using On Error Resume Next if an error occurs then you won't spot it. Just rem it out while you are testing. So which part isn't working as it should? ;) |
| All times are GMT +5.5. The time now is 19:06. |