Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Currency symbols in input mask
Message
From
07/06/2001 16:38:43
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00510226
Message ID:
00516649
Views:
11
>Yes, tanks. But when I use the numeric
>keypad to type:
>12.36
>then the textbox does not recognise the period!
>The textbox then reads as follow
>FL1236.00
>
>How can I change this? I would like it to be
>FL12.36
>
>Is it possible to do this? It is unfortunatly
>not the default beheviour...

If you're using an European style keyboard driver (I really don't know whether Dutch had any diacriticals, it's been 25 years since the last good dark Amstel in Amsterdam), you may actually be emitting a comma when typing a period on the numerical keypad. A way around it would be to substitute it in the keypress event of the textbox, i.e.
... case nKeyCode=asc(',')
   dodefault(asc('.'), nCtrlAltShift)
   nodefault
...
I assume it's rather the case you have a picture of "XX9999.99" (oops, badspeak, it's the InputMask property now) which will behave just like a string, i.e. you lose the numeric ability to shift focus to right behind the decimal point as soon as you type a period.

Is FL here the currency designation? Fl as florin meaning guldens (just like the "lb" means pounds)? You'd rather assign a value of 0 to your textbox, Set Currency to "FL", Set Currency Left, and use an InputMask of "$ 9999.99". Assigning a numeric value (unless the textbox is already bound to a numeric field) will get it to behave as you like; $ in the inputmask (and other settings) will get FL displayed in front of the value in the textbox.

back to same old

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

Click here to load this message in the networking platform