iGuest 3 Report post Posted December 12, 2004 ok i have a pice of code that loads an IP and a discription to a list box from a text file and nomaly it should load the full ip (like 23.435.12.34) but instead it will load 23.435 can anyone help here the code Private Sub Form_Load()Open App.Path & "config.txt" For Input As #1Dim stra As StringInput #1, stratxtPath.Text = straDim fora As IntegerInput #1, DICountIf DICount = 1 Then Input #1, IPs(1) Input #1, Descs(1) lstServer.AddItem IPs(1) & " -" & Descs(1) & "-"Else For fora = 1 To DICount Input #1, IPs(fora) Input #1, Descs(fora) lstServer.AddItem IPs(fora) & " -" & Descs(fora) & "-" Next foraEnd IfClose #1'DICount = 0End Sub Share this post Link to post Share on other sites
iGuest 3 Report post Posted December 14, 2004 as I can see you never declare IPs() ? Am I right? Anyway what is it for? I am kinda interested in VB. Share this post Link to post Share on other sites
iGuest 3 Report post Posted December 17, 2004 IPsdo you define IPs as string ?for example : dim IPs(10000) as stringpost the file config.txt plz. Share this post Link to post Share on other sites
iGuest 3 Report post Posted December 27, 2004 We hate VISUAL BASIC Scripts :evil: Share this post Link to post Share on other sites
iGuest 3 Report post Posted December 31, 2004 could you show us a demo... Share this post Link to post Share on other sites
iGuest 3 Report post Posted January 1, 2005 your coding is very bad.make it readable and i will try to fx it . Share this post Link to post Share on other sites