The Daily Click ::. Forums ::. Klik Coding Help ::. String Parser 2
 

Post Reply  Post Oekaki 
 

Posted By Message

Dalal



Registered
  28/03/2004
Points
  307
23rd August, 2004 at 20:11:13 -

I admit I have never used this object before. This is the first time I'm using it!

I need a way to find the x-th character in a given string. For example, in the string "I am Dalal", if I find the 4-th character in this string, it should come up with "m". How can I do this? I don't understand delimeters tokens or anything...

 
.bin there done .dat

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
24th August, 2004 at 12:28:57 -

You don't need String Parser 2 for that. Just go to the expression editor and do
Mid$("I am Dalal",4,1)
. The first part of the Mid$() function is the string you want, the second part is the starting position, and the third part is the length. So
Mid$("I am Dalal",3,4)
would return "am D".

 
http://www.klik-me.com

Dalal



Registered
  28/03/2004
Points
  307
24th August, 2004 at 15:57:55 -

RapidFlash. Thanks a bundle! I'm sorry I never even knew that function existed in MMF. I should explore the string functions that MMF has before posting such a question. I used TGF for more than 3 years and when I began using MMF, I never really explored its new functions.

Anyway, thanks a lot for the help.

Image Edited by the Author.

 
.bin there done .dat

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
24th August, 2004 at 16:48:24 -

Your welcome. Mid$() is extremely useful for many text-based programs (for things like encryption, parsing, etc.)

 
http://www.klik-me.com
   

Post Reply



 



Advertisement

Worth A Click