That's because
len excpects a string and not an array.
What you're doing should be written like so:
PERFORM CHECKLIST FOR DISPLAY MODES
arraySize=CHECKLIST QUANTITY()
TEXT 0,0, "arraySize= "+STR$(arraySize)
GLOBAL DIM dispMode$(arraySize)
TEXT 0,15, "1: "+STR$(ARRAY COUNT(dispMode$())) rem array count() instead of len() and you must also add brackets to dispName$ to indicate it's an array.
The main problem is that the
array dispMode$() and the
variable dispMode$ are two different objects. As you haven't initialized the variable dispMode$, yet use it as argument to the len()-function, it will be created and zero initialized by default. Thus the result that it is an empty string is in fact correct and to be expected
"Why do programmers get Halloween and Christmas mixed up?" Because Oct(31) = Dec(25)