Searching for empty arrays
Posted: Mon Jan 23, 2017 7:53 pm
I have an array, some contain strings and some are empty (no integers). Is there a way to find the empty arrays?
Discuss QBasic, Freebasic, QB64 and more
http://petesqbsite.com/phpBB3/
Code: Select all
DIM array$(100)
FOR i = 0 TO 99 'set indices
array$(i) = "AA"
NEXT
PRINT array$(50) 'read an index
PRINT LEN(array$(50)) 'display length of string
PRINT LEN(array$)