Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-10

Format() directives

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrew Pennebaker

In the future, could Format respect the difference between '%x' and '%X'? It's useful to use the former for lowercase hexadecimal.

Cheers,

Andrew Pennebaker
www.yellosoft.us

Reply by email

waldo kitty
to Andrew Pennebaker
Andrew Pennebaker wrote
In the future, could Format respect the difference between '%x' and '%X'? It's useful to use the former for lowercase hexadecimal.

please forgive the stoopid question but, is there any real difference? in hex, f00 is the same as F00, isn't it??

Reply by email

Andrew Pennebaker
to waldo kitty

Correct. But some systems expect hex input in lowercase, and some expect it in uppercase. It would be nice if Format('%x', [s]) and Format('%X', [s]) allowed this kind of customization.

For now, AnsiLowerCase(Format('%X', [s]) is a workaround.

Cheers,

Andrew Pennebaker
www.yellosoft.us

waldo kitty wrote 13 lines
On 10/20/2011 17:47, Andrew Pennebaker wrote: > In the future, could Format respect the difference between '%x' and '%X'? > It's > useful to use the former for lowercase hexadecimal. > please forgive the stoopid question but, is there any real difference? in hex, f00 is the same as F00, isn't it?? ______________________________**_________________ fpc-pascal maillist - http://lists.freepascal.org/**mailman/listinfo/fpc-pascal<http://lists.freepascal.org/mailman/listinfo/fpc-pascal>

Reply by email