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.

Newcomers AppGameKit Corner / How to find sub string?

Author
Message
hakimfullmetal
9
Years of Service
User Offline
Joined: 17th Feb 2015
Location:
Posted: 10th Jul 2016 11:41
Hello everybody.

Let's say I have a string "todayisMonday"
And I wanted to know if that string contained a word - "Monday"
In DBPro, I would use the command FIND SUB STRING$(source, string) to find out if "todayisMonday" contained the word "Monday". It will return 1 if "monday" exists in "todayisMonday"

Quote: "FIND SUB STRING$("todayisMonday", "Monday")"


But how do I do this is AppGameKit?
PSY
Developer
7
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 11th Jul 2016 02:24
Hey,

use
Quote: " FindString( str, findStr, ignoreCase, start ) "


L8er,
PSY
hakimfullmetal
9
Years of Service
User Offline
Joined: 17th Feb 2015
Location:
Posted: 11th Jul 2016 11:45
I see, thanks.

Funny that the command is not in the 'Text' section
BatVink
Moderator
20
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 12th Jul 2016 12:08
Text is about manipulating visible representations of text.
It is in the core functions, which deals with manipulation of data, including string data.

It's a subtle but important difference
(and I have been caught out with this too!)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt

Login to post a reply

Server time is: 2024-03-29 06:06:35
Your offset time is: 2024-03-29 06:06:35