Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Identifying Text Within a String

Author
Message
Bob the Chicken
20
Years of Service
User Offline
Joined: 12th Dec 2004
Location:
Posted: 12th Dec 2004 12:46
Hi...I'm having a few problems regarding strings in a program.

Example: I have the string that contains "Hi. I am new to the forum."

Next I input something...How do I code it so that my program can "respond" if the words "i am new" are contained in the string? All I can do is identify the whole string and not parts. Any help on that would be greatly appreciated.


And lastly, how do I get rid of case-sensitivity? So that anything I input is accepted regardless of capitals/lower-cases letters etc?

Thank-you very much in advance!
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 13th Dec 2004 06:21
well if you want it rather basic make it something like.




Bob the Chicken
20
Years of Service
User Offline
Joined: 12th Dec 2004
Location:
Posted: 13th Dec 2004 07:42
Ok, thanks I get the basic idea! Is there any way to indentify the middle sections like "can't code"? Or is that not possible in DB Classic?

Login to post a reply

Server time is: 2025-05-24 08:34:07
Your offset time is: 2025-05-24 08:34:07