Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
searching inside a string???????????
Hello everyone, my name is haris and I have recently started to learn basic. Right now a lot of things are looking very very difficult. I have downloaded couple on books on how to use liberty basic. And while every book tells the same function for searching inside a string instr function. I want to to know is it possible to search for two strings or numbers inside a string.
Here is a small example:
Print "what is the string?"
Pos1 = instr$(string$,"a",1)
Pos2 = instr$(string$,"b",1)
I want to know is it possible to search for "a" and "b" in a single function?
Anyhelp will be greatly appreciated.