how to find string length in blaze advisor?we need to get string from comma separated string. Example Male,Gen we need to get Male and then Gen
For string fields, most Java methods work, so something like:
gender = exampleString.substr(1,exampleString.indexOf(",")-1)
secondPart = exampleString.substr(exampleString.indexOf(",")+1,exampleString.length)
The intellisense will help if you are on a recent version. I do both .NET and Java, so I may have the capitalization wrong on the methods. Also, watch to see if it is zero or one based for the beginning of the string and adjust as necessary.
Business Rules Consulting, inc.
To simply check the length of a String you can use portable().toString("String Value").length()
Retrieving data ...