[resolved] IndexOF of given occurence

One Star

[resolved] IndexOF of given occurence

I would like to implement the indexOf function to get the specified location of the given "n" character ?
myString = "dsdkqjk:dkslqk:lklkdqs:klklk:"
myString.indexOf(":",3)
Any ideas ?
Regards

Accepted Solutions
One Star

Re: [resolved] IndexOF of given occurence

OK i add tjavaRow component with some java code to do that.
Regards
Marc

All Replies
One Star

Re: [resolved] IndexOF of given occurence

use
myString.indexOf(<char>);
This will give the index of the character.Check java docs
http://download.oracle.com/javase/1.4.2/docs/api/java/lang/String.html
One Star

Re: [resolved] IndexOF of given occurence

Yes the index of the first one not the given one..
I would like to get the index of the character but not the first or the last but the "x" one.
Regards
One Star

Re: [resolved] IndexOF of given occurence

OK i add tjavaRow component with some java code to do that.
Regards
Marc