General

String Manipulation?

Started by ForestCat on .

Sign in or create an account to join the conversation.

5 posts

Topic starter
I've spent an insane amount of time trying to figure this out, twice through the manual and this forum, no luck... Maybe I'm blind.

How can I remove single quotes from a string?
ie ''/ContainerName/TargetName' ---> /ContainerName/TargetName

Thanks for any help.
There is NOTHING that I can do, including trying three different email accounts, to have this forum notify me via email of replies to my threads. Sorry, I just found this.

I'd be happy to be able to do it with any type of string. I just want some rudimentary string functions, just like every other Lemur customer has been asking for 5+ years. Oh well.
in some ways, the data is untyped until you do something with it.
for example, doing the old trick of

decl num = 17;
decl numString;

numString = '' + num;

turns the number 17 into the character string "17"

You can use some of the vector functions found at the end of the manual to subdivide strings up and such, but it's more C-like in that you have a handful of primitives and end up having to write your own useful functions.
I have a bunch for doing things like converting integer seconds into HH:MM:SS strings, for creating hexidecimal strings from integers, etc.

A book/on-line collection of script nuggets would be very beneficial, but the last time it came up, the Liine staff asked the community for the nuggets...