How to get an array size

Blitz3D Forums/Blitz3D Programming/How to get an array size

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You mean something like this?
free_pos = -1

For i = 0 To (BankSize(bank)-1) Step 4
    If PeekInt(bank,i) = 0
        free_pos = i
        Exit
    EndIf
Next

If free_pos = -1
    ; Bank has no free position. Handle that here.
EndIf