What's the maximum number of elements in a table?


Results 1 to 6 of 6

Threaded View

  1. #2


    Did you find this post helpful? Yes | No

    Default Re: What's the maximum number of elements in a table?

    Quote Originally Posted by J. Mark Wolf View Post
    I need to store approx 300 words elements (600 bytes) in a table.

    It looks like Lookup2 craps out at 256 words, and Lookup does the same at 256 bytes.

    Any workarounds? (That EXT modifier looks kinda scary)

    One work around is to use two lookup2 statements. Placed one right after the other.

    Example, 150 in each words table,
    Code:
    Gosub MYTABLE
    
    
    MYTABLE:
    
    	If INDEX > 150 then MYTABLE2
    
    	LOOKUP2 INDEX, [1,....150],VAR
    
    	goto endtable
    
    MYTABLE2:
                    INDEX = INDEX - 150
    
    	LOOKUP2 INDEX,[151...300],VAR
    
    endtable:
    
    	Return
    Last edited by mark_s; - 27th March 2011 at 21:28.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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