This sample demonstrates how to trim the leading zeros from a variable.
;get the value of the textbox, for example
@var@ = $This.Textbox1$
;Loop through string (textbox value)
FOR(@x@ = 1, @x@ < (Len(@var@)), @x@ = @x@ + 1)
;Check for zero
IF (Mid(@var@,@x@,1) = “0”)
;Ignore
ELSE
;Not 0 - return rest of the string and exit loop
@var@ = Mid(@var@, @x@,Len(@var@)-(@x@ - 1))
ExitFor
ENDIF
NEXT