Skip to main content
Question

Convert a number to text

  • August 25, 2021
  • 0 replies
  • 169 views

Forum|alt.badge.img+8
I need to pad a number with 2 leading zeros to be able to read a legacy bar code.  The ToFormattedText function does not actually convert the number so I can't use the PadLeft function.  I know there has to be a way to convert a number to text, but I can not seem to find the right function.  Any help would be appreciated.

------------------------------
Julie Meeker
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+24
How about this as a formula text field.

var text MyBarCode = ToText([my bar code field]); 
IF(not begins($MyBarCode, "00"), "00" & $MyBarCode, $MyBarCode)




------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------