Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To: Hijack the Column.Init() from Column.txtbox.init
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00774641
Message ID:
00778745
Vues:
23
LOCAL llRetVal
DO CASE
	CASE "amount"$LOWER(THIS.COMMENT) OR "amt"$LOWER(THIS.COMMENT)
		THIS.INPUTMASK = goApp.GetSetting("General", "Amount Format", "99 99 99 999.99")
		THIS.Format = goApp.GetSetting("General", "Amount Format", "99R99R99R999.99")

...
ENDCASE

IF THIS.PARENT.BASECLASS = "Column"
   THIS.PARENT.INPUTMASK = THIS.INPUTMASK
   THIS.PARENT.Format = THIS.Format
ENDIF
And:
You can use: SET SEPARATOR TO ,
or set Digit grouping symbol of the Windows Regional Options Control Panel (default is empty char, he he ), if you uses SET SYSFORMATS ON.

MartinJ

>I can send you the textbox class, let me know the address. It is based on the codebook so do you have a copy of it?
>
>>Can you send me form/classlib with code?
>>
>> MartinJ
>>
>>>Sorry Martin, it didn't work for me.
>>>
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform