cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

How to find the length of the string

MK_9986318
5-Regular Member

How to find the length of the string

Is it possible to find the length of the string.

If it is possible let me know how.

1 REPLY 1

Is this what you're looking for?

 

 

stringLen = InputString.length;
string2 = "Second";
stringLen2 = string2.length;
logger.warn("String1 / String2 length is " + stringLen + " / " + stringLen2);
result = stringLen + " / " + stringLen2;

 

Top Tags