Jump to content
Sign in to follow this  
MVROD

Getting a substring

Recommended Posts

MVROD

Hi !

Does anybody knows how getting a substring providing the start and finish position ?

Like string.substring(0,10) in JAVA?

I'm not searching for a specific string, I just would like to know the string which is between some positions.

Example:

String word = "Hello Earth"

word.substring(7,9) = Ear

Can anybody help me how to do this ?

Edited by MVROD

Share this post


Link to post
Share on other sites
KaFu
MVROD

Use StringMid ( "string", start [, count] ).

Thanks a lot!

It worked successfully !

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.