Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

embed variable in strings

Is there a way to embed variable data in a text string?  For example, "Water Level is 10.4 ft. "  where 10.4 is value of variable named Water_Level.

 

Thanks,

Chris 

0 Kudos
Message 1 of 2
(5,818 Views)

An & is used to combine text and object and data member (if not implicit) in an expression.  Using your example, you would use a text expression with the following in the yellow field:

 “Water Level is “&ObjectName.DataMember &” ft.”

If you wanted to always display one decimal use the text function:

“Water Level is “&text(ObjectName.DataMember,”0.0”) &” ft.”

Hope this helps.

0 Kudos
Message 2 of 2
(5,816 Views)