Data Type Member

I suppose there’s something wrong with Strings parameters in expressions in UDTs.
I’ve created a Custom Data Type tag with an Expression Tag inside, giving this Expression:

toString({MyVar})

where MyVar is an UDT parameter

Now, if MyVar is a Integer, it works great.
If it’s a String, Ignition gives me an Evaluation error. :frowning:

I’ve tried also

toStr({MyVar})

and

{MyVar}

but it doesn’t work…
Any suggestion?

It looks like UDTs are slightly different in how they evaluate expressions (using Ignition 7.6.6). As a work around you could try using this:

toString('{MyVar}')

IT WORKS :thumb_right:
Thank you!