Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Format mask for numbers
Message
De
03/12/2008 15:23:42
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01365281
Message ID:
01365394
Vues:
18
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform