FMT function
Posted: Wed Jul 28, 2004 2:09 am
I simply want to pad a field with a number of leading zeros but the specific number is the value of an argument passed to the code.
I have tried
PadUnSigArg1 = FMT(UnSigArg1, "Arg1'0'R")
which does not work
and
PadUnSigArg1 = 0(Arg1 - Len(UnSigArg1)):UnSigArg1
which almost works
0.0000000123456
I realise I can manipulate the second result to get what I want but can I do it cleaner?
Any solution would be greatly appreciated.
I have tried
PadUnSigArg1 = FMT(UnSigArg1, "Arg1'0'R")
which does not work
and
PadUnSigArg1 = 0(Arg1 - Len(UnSigArg1)):UnSigArg1
which almost works
0.0000000123456
I realise I can manipulate the second result to get what I want but can I do it cleaner?
Any solution would be greatly appreciated.