[SOLVED] Text string manipulation

Hi there,
I need to get a substring from a string typed by the user through an AR keyboard that I designed.
For example.
If the user enters the string “ABCD” I would like to be able to select just the substring “ABC”, truncating the last character.

How can I accomplish it with the scripting language? I couldn’t find any string manipulation function in the Code Reference Docs.

Thanks in advance!
Alex

SOLVED!
Just need to declare a new variable as string, then assign the user entered string to that variable and finally use string manipulation methods of TypeScript on this variable to achieve the desired result! :wink:

3 Likes