Browse FAQs

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

Published date: 16 January 2019

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 ?

Can't find what you are looking for?

Reach out to our customer care team to receive information on technical support, assistance for complaints and more.