Ewon TechForum
Providing technical solutions to technical requests

Concatenating Two Variables
ibeason Offline
Junior Member
Is there an easy way to concatenate two tags and store in the ewon memory registers?


simon Offline
eWON Support

Sure it is possible.
I guess you are talking about String Tags ?
What you can do in the init section :
ONCHANGE "Tag1", "Tag3@ = Tag1@ + Tag2@"
ONCHANGE "Tag2", "Tag3@ = Tag1@ + Tag2@"

If Tag1 or Tag2 are numerical Tags, then use the function TSR$ to cast the value into a string (Tag3@ = STR$ Tag1@ + STR$ Tag2@ -->Tag3@ is string tag)


Users browsing this thread:
1 Guest(s)

Theme © Ewon 2019 - Forum software by © MyBB - Cookie policy