Re: export numeric field right alligned
- From: Salad <oil@xxxxxxxxxxx>
- Date: Thu, 30 Aug 2007 09:35:52 -0700
janssensglb@xxxxxxxxxx wrote:
Don't fill the leading blanks with zero's but with spaces...
Arno R
I'm not sure how I can do that.
If the value of the record is eg. 1.23, I need to fill 6 leading
blanks with spaces. If the value is 1234.56, I need to fill 3 leading
blanks with zeros.
Can I do this using the format function?
Thanks
a = 123.45
? Right(string(10," ") & a,10)
123.45
or
? Right(string(10,space(1)) & a,10)
123.45
.
- Follow-Ups:
- Re: export numeric field right alligned
- From: Salad
- Re: export numeric field right alligned
- References:
- export numeric field right alligned
- From: janssensglb
- Re: export numeric field right alligned
- From: Arno R
- Re: export numeric field right alligned
- From: janssensglb
- export numeric field right alligned
- Prev by Date: Re: Create Weekly and Monthly Flag in database/table
- Next by Date: Re: export numeric field right alligned
- Previous by thread: Re: export numeric field right alligned
- Next by thread: Re: export numeric field right alligned
- Index(es):
Relevant Pages
|
|