NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert an integer to a sting in an expression

HI,

I need the convert and integer to a sting in the following example


In the post expression:
Step.Result.ReportText = "This is channel No. " + Local.ChNo

I get an error of unmatched type. (Local.ChNo is integer)

CAn you show me how to convert the integer to string in this example?

Thanks
Rafi
0 Kudos
Message 1 of 2
(3,029 Views)
Hi Rafi,


Step.Result.ReportText = "This is channel No. " + Str(Local.ChNo)

or you can format the string Str(Local.ChNo, "%x")

Check out the help within the function browser.


Regards
Ray Farmer
Regards
Ray Farmer
Message 2 of 2
(3,027 Views)