|
-
Jun 17th, 2010, 01:06 PM
#1
Thread Starter
Lively Member
[RESOLVED] what wrong in this example
what wrong in this example
Example...........
-
Jun 17th, 2010, 01:40 PM
#2
Re: what wrong in this example
What's it supposed to do? What does it do now? Do you get any errors (which)? etc...
-
Jun 17th, 2010, 01:44 PM
#3
Thread Starter
Lively Member
Re: what wrong in this example
if we load txt file in form1 in list1 if we choose the number +ve number then get error
-
Jun 17th, 2010, 01:51 PM
#4
Re: what wrong in this example
What error, and whats "+ve number"? What line gives you the error?
-
Jun 17th, 2010, 01:58 PM
#5
Thread Starter
Lively Member
-
Jun 17th, 2010, 02:06 PM
#6
Re: what wrong in this example
That error means that the array called a does not have that many (List1.ListIndex + 1) elements. Depends on how the array is declared and populated.
-
Jun 17th, 2010, 02:21 PM
#7
Re: what wrong in this example
Sniper
Picking up on Baja's post, at that "crash" line,
- what is the value of (List1.ListIndex + 1)?
- what is the size of a()?
Spoo
-
Jun 17th, 2010, 08:07 PM
#8
Re: what wrong in this example
vb Code:
If (List1.ListIndex + 1) > UBound(a) Then
MsgBox "no array index for that"
Else
b = Split(a(List1.ListIndex + 1), "*")
Text1.Text = b(List2.ListIndex + 1)
Text2.Text = b(List2.ListIndex + 2)
Text3.Text = b(List2.ListIndex + 3)
Text4.Text = b(List2.ListIndex + 4)
Text5.Text = b(List2.ListIndex + 5)
Text6.Text = b(List2.ListIndex + 6)
Text7.Text = b(List2.ListIndex + 7)
Text8.Text = b(List2.ListIndex + 8)
Text9.Text = b(List2.ListIndex + 9)
Text10.Text = b(List2.ListIndex + 10)
End If
Software I use and highly recommend: Opera, Miranda IM, Peerblock, Winamp, Unlocker Assistant, JoyToKey, Virtual CloneDrive, Secunia PSI, ExplorerXP, GOM Player, Real Alternative, Quicktime Alternative,Sumatra PDF, and non-freeware: Photoshop and VB6( ).
My codebank: AllRGB, Rounded Rectangle(math), Binary Server, Buddy Paint, LoadPictureGDI+, System GUID/Volume Serial, HexToAsc, List all processes and their paths, quasiString matching
Strings(search, extraction, retrieval etc): Retrieve BBCode Link from HTML, RemoveBetween ()'s, strFindBetween(str1,str2), Insert text in HTML, HTML - GetSpanByID
-
Jun 18th, 2010, 05:33 AM
#9
Thread Starter
Lively Member
Re: [RESOLVED] what wrong in this example
thanks for you
the problem is resolved
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
|