The format command only does decimals.
Thanks,
Mike
I would like to see the commas in a Interger value not just the decimals
value. Any ideas?
Thanks in advance.
Mike
"Michael Kintner" <mkin...@adelphia.net> wrote in message
news:WJynb.133000$qj6.9...@news1.news.adelphia.net...
> I know how to add thousands mark in decimals usinf format but how can
> you do it in Integer?
>
> The format command only does decimals.
Use decimals with zero decimals? I think it can be done simpler, too.
Type "Format", press F1, read help. There's a whole page on format
strings.
Groetjes,
Maarten Wiltink
Here's one way:
Format('%.0n', [IntVal * 1.0]);
Multiplying by 1.0 ensures that an Extended is passed to Format instead
of an Integer.
--
Rob
"Maarten Wiltink" <maa...@kittensandcats.net> wrote in message
news:3f9eba55$0$58708$e4fe...@news.xs4all.nl...
"Rob Kennedy" <.> wrote in message news:vptejsm...@corp.supernews.com...
Yes, I know. Did you actually try the code I gave you?
Alternatively, you can display a byte count the same way Explorer shows
file sizes by using the StrFormatByteSize API function. See MSDN for
details.
--
Rob
wrong format beyond 999,999,999 GB, fails some time around 2026 ;-)