DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

Concatenating numbers with leading zeros into a global string in DasyLab

I need to format a global variable into a global string with the field width exactly three characters long. For example, if the global variable is 1, the global string needs to be "001". I tried using strfmt(${VAR_801},3,0) as the expression under the extended global string dialog, but that results in "1". Any help or suggestions are appreciated.
0 Kudos
Message 1 of 2
(7,660 Views)
Hello Mark,

DasyLab support is handled through the following website.

DASYLab
www.dasylab.net

Regards,

Todd D.
NI Applications Engineer
0 Kudos
Message 2 of 2
(7,660 Views)