The Daily Click ::. Forums ::. Klik Coding Help ::. Finding string in string
 

Post Reply  Post Oekaki 
 

Posted By Message

vetmora120



Registered
  07/01/2010
Points
  273
26th January, 2011 at 09:33:27 -

Hello!

I was wondering if it's possible to find a piece of string inside a string.

For example:
Say I have a string object set up to display the keys pressed on the keyboard as I'm typing. Is it possible to then search the string for the letter "a"? Or any character specified, and then carry out the required events?

I had a look on MMF and some objects but couldn't seem to find anything. The closest I got was the find string in string under the special cammand. But that returns substring indexes.

Thanks

Vet

 
n/a

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
26th January, 2011 at 21:25:56 -

it also returns -1 if it doesn't find anything. whats the problem? it's either there or it's not. if it is it tells you the index that the substring starts at. again whats the problem?

 
n/a
   

Post Reply



 



Advertisement

Worth A Click