Technical FAQs

Ask a Question

What is the return value of the Vijeo Designer String Method "indexOf(String arg)"?

Issue: How do we use the java script method "indexOf(String arg)" in Vijeo Designer? What is the return value?

Product Line: Vijeo Designer

Resolution: When the java script string method "indexOf" finds the substring as specified by the parameter "arg", it will return the starting position. If the string method cannot find the substring, the return value is -1.

Note, the position index starts at 0. Therefore for a string TEST, position 0 is the letter T and position 1 is the letter E.
Was this helpful?
What can we do to improve the information ?