Feb 5, 2004 #1 ganjass Technical User Dec 30, 2003 154 GB CR 8 Hi I need to format numbers so that they are right justified with leading zero's to the length of 11 digits with no decimal place. eg. 30.50 would be 00000003050 100.60 00000010060 Cheers
CR 8 Hi I need to format numbers so that they are right justified with leading zero's to the length of 11 digits with no decimal place. eg. 30.50 would be 00000003050 100.60 00000010060 Cheers
Feb 5, 2004 1 #3 vidru Programmer Jul 18, 2003 2,113 US Try this: replicatestring("0", 11 - len(replace(totext({table.field),".","")) + replace(totext({table.field}),".","" -dave Upvote 0 Downvote
Try this: replicatestring("0", 11 - len(replace(totext({table.field),".","")) + replace(totext({table.field}),".","" -dave
Feb 5, 2004 Thread starter #4 ganjass Technical User Dec 30, 2003 154 GB nargoyni cheers mate close but no cigar it does right justify the number but it forgets the number after the decimal, vidru sweet as a nut it worked perfectly Upvote 0 Downvote
nargoyni cheers mate close but no cigar it does right justify the number but it forgets the number after the decimal, vidru sweet as a nut it worked perfectly
Feb 5, 2004 1 #5 lbass Technical User Feb 9, 2002 32,816 US Nagornyi's approach would work with the following modification: totext({table.number} * 100, "00000000000" -LB Upvote 0 Downvote
Nagornyi's approach would work with the following modification: totext({table.number} * 100, "00000000000" -LB
Feb 5, 2004 Thread starter #6 ganjass Technical User Dec 30, 2003 154 GB thanks all Good effort! Upvote 0 Downvote