invalid type conversion?

BlitzPlus Forums/BlitzPlus Programming/invalid type conversion?

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.

The correct way to check for the existence of a type object is with Null.
When 's=Null' is true the object s does not exist.

After fixing this the Repeat loop would still fail if the list is empty.
You really should use a While loop.
While s <> Null
   ; do stuff with s
Wend