Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox formatting
Message
De
20/08/2008 12:46:03
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
20/08/2008 11:33:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01340252
Message ID:
01340407
Vues:
16
>>>What is the proper way to define a textbox if the data field is C(12,2) and the display should include the comma separaters? I would think an inputmask of ###,###,###.## would do it but this displays the commas even when the data is empty. Can't we display the commas only when there is data?
>>
>>I assume you meant N(12,2).
>>
>>Add a Z into the .function property of the textbox ("blank when zero")
>
>Yes I meant N(12,2). Oops.
>What do you mean by "function" property?
>Format = Z

OK now you guessed what I meant :). Yep it's the format property - that stuff used to be format picture functions (anything that went between an @ and a space in a picture clause or a transform()'s second parameter).

>InputMask = ###,###,###.##
>still displays the commas when empty.

Bind the textbox to a numeric field, or set its value to a number. If you try to display a(n empty) string using this input mask, you'll get the commas and the dot.

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