|
-
Oct 5th, 2000, 07:07 PM
#1
Thread Starter
Frenzied Member
Hi all. one more question.
Are strArrays limited to 32768? What if I have say 50000 things?
ANybody know?
Thanks
Wengang
Wen Gang, Programmer
VB6, QB, HTML, ASP, VBScript, Visual C++, Java
-
Oct 5th, 2000, 07:23 PM
#2
Frenzied Member
just use 2 arrays instead, it will be twice as much code, but it will work
NXSupport - Your one-stop source for computer help
-
Oct 5th, 2000, 07:40 PM
#3
_______
<?>
Code:
Option Explicit
'this is not 50,000 it is 500,000 and no problem
'however a listbox is limited so you can only
'exhibit 32,736 items as that is where the list box will klunk out
'however if you just ask for myArr(499,000) the element is in the array
Private Sub Command1_Click()
Dim myarr(500000)
Dim i
For i = 1 To 500000
myarr(i) = i
' List1.AddItem myarr(i)
Next i
List1.AddItem myarr(489000)
End Sub
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
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
|