Results 1 to 2 of 2

Thread: array limits

  1. #1

    Thread Starter
    Lively Member maki's Avatar
    Join Date
    Mar 2006
    Location
    Greece
    Posts
    82

    array limits

    Vb 6 have any string array limits or i can store in an array as much variables as i want? i have created the following for loop

    VB Code:
    1. For nxt = 0 To click Step 1
    2.  
    3.  ret = PrologNextSolution(qid)
    4.  ret = PrologGetString(qid, "Final", schedule)
    5.  
    6.  If PrologNextSolution(qid) = 0 Then
    7.  MsgBox "No more solutions", 48, ""
    8.  click = 0
    9.  End If
    10.  Next nxt

    and then i store the results in an array. The for loop runs when the variable PrologNextSolution is 1. When nxt becomes 32767 then appears "Run time error 6 overflow".
    Thank you!

  2. #2
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,222

    Re: array limits

    32767 is the max cap for an integer variable

    You would have to make it long for it to hold any larger of a number.


    That is, if an array can hold more than that...I've never had one hold so much data

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width