Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[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
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

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

View solution in original post

3 Replies
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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