AGG Software Forums

Online Help Center => Data loggers and plug-ins => Topic started by: ccdr on August 09, 2018, 08:57:47 AM



Title: How to concatenate string to item value
Post by: ccdr on August 09, 2018, 08:57:47 AM
Hello
I'm going to concatenate a string say {" to certain parsed item of floating type using Expression plugin.
How to make up the expression escaping the " symbol? Should I need to explicitly cast floating type to string type?
NEW_ITEM = "{""+ITEM, correct?
Thanks


Title: Re: How to concatenate string to item value
Post by: Arthur Grasin on August 09, 2018, 09:24:24 AM
Hello,

NEW_ITEM = '{'+FLOATTOSTR(ITEM)


Title: Re: How to concatenate string to item value
Post by: ccdr on August 09, 2018, 09:28:17 AM
Hello,

NEW_ITEM = '{'+FLOATTOSTR(ITEM)
Thanks for the timely feedback.
Then how to escape the character double quote " within the single quote mark?


Title: Re: How to concatenate string to item value
Post by: Arthur Grasin on August 09, 2018, 09:59:16 AM
NEW_ITEM = '{"'+FLOATTOSTR(ITEM)