Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Column dynamicinputmask
Message
De
28/11/2012 06:34:46
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
26/11/2012 13:25:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01558080
Message ID:
01558235
Vues:
63
>>Try:
>
>>thisform.Grid1.Column.DynamicInputMask = "IIF(TheField%1=0,'9999','9999.999')"
>>Not tested.
>
>TESTED
>
>Not what I wanted to do but I found the way.
>
>Your solution makes a record not int is shown with decimals, integer without decimals. Perfect.
>
>What I wanted to do was: Just one with decimals? Everyone with decimals.

Then add a property to the form, something like this
locate for TheField%1#0
thisform.addproperty("hasNoDecimals", not found())
thisform.oGrid.DynamicInputMask = "IIF(thisform.hasNoDecimals,'9999','9999.999')"

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