Instr$ Question

Blitz3D Forums/Blitz3D Beginners Area/Instr$ Question

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.

Please could someone tell me why the following will not work.

;=============================================

a$="AAAABBBBBBBBFFFFFFDDDDDDABCAABB"

Select True
Case Instr(a$,"ABC")
END
End Select

;=============================================

Shouldn`t this end the program as ABC is contained in the string a$?

The following works fine but I`m curious...

;=============================================

a$="AAAABBBBBBBBFFFFFFDDDDDDABCAABB"

If Instr(a$,"ABC") Then End

;=============================================

Regards,
Jason.