Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Format mask for numbers
Message
From
03/12/2008 15:23:42
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01365281
Message ID:
01365394
Views:
17
>>Wouldn't it brake an alignment with proportional fonts?
>>
>>>Change the report field expression to be character and delete the format expression. Instead, set the field expression to something like this:
>>>
>>>TRANSFORM(YourNumber, ICASE(FirstCondition=.t., '999.999', SecondCondition=.t., '9999.99', ThirdCondition=.t., '99999.9', '999999'))
>
>Yes .. If you're looking to align the decimal points, this would totally screw it up!

Actually, if properly padded, it shouldn't - at least IIRC the width of a space is supposed to be same as width of a digit. But then there may be fonts out there whose authors didn't feel like abiding to that rule - OK, just tried
_screen.FontName= "Sylfaen"
?"0123456 123"
?"01234560123"
and a few other fonts, and it doesn't align. Too bad - there was no good reason to remove this feature. Even the Arial, in which we are forced to compose messages here (l'II keep complaining about that one :) doesn't show the 123 in the example lines aligned.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform