Jan 14, 2005 #1 lymi6977 IS-IT--Management Jan 14, 2005 16 US Is there a way to make a numeric field, i.e. 1234.56, to always have a fixed length of 12 with leading zeros? 1234.56 to be 000000123456 Any help is greatly appreciated!
Is there a way to make a numeric field, i.e. 1234.56, to always have a fixed length of 12 with leading zeros? 1234.56 to be 000000123456 Any help is greatly appreciated!
Jan 14, 2005 1 #2 lbass Technical User Feb 9, 2002 32,816 US Are there always two decimals? If so, you could use: totext({table.number}*100,"000000000000") -LB Upvote 0 Downvote
Jan 14, 2005 #3 synapsevampire Programmer Mar 23, 2002 20,180 US If the decimal varies, or just to be safe, try: totext(replace(totext({table.number},0,""),".",""),"000000000000") -k Upvote 0 Downvote
If the decimal varies, or just to be safe, try: totext(replace(totext({table.number},0,""),".",""),"000000000000") -k
Jan 14, 2005 #4 synapsevampire Programmer Mar 23, 2002 20,180 US Oops should be: totext(replace(totext({table.number},4,""),".",""),"000000000000") The 4 is the number of max decimals. -k Upvote 0 Downvote
Oops should be: totext(replace(totext({table.number},4,""),".",""),"000000000000") The 4 is the number of max decimals. -k