Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET POINT and numeric input
Message
De
14/01/2002 10:25:15
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
À
14/01/2002 09:56:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00603396
Message ID:
00604326
Vues:
34
This message has been marked as a message which has helped to the initial question of the thread.
Hilmar I just tested again and works for me heres what I've tested, I've created a form put an textbox in it bound to a table with a numeric field, run that form an voila works do you have any more code running??

>>Hilmar I've tested this and works have you put the CLEAR the exact line in the GotFocus?
>>
>>>>You don't have to do the following:
>>>>GotFocus Event of the textbox
>>>>
ON KEY LABEL '.' KEYBOARD ',' CLEAR
>>>>LostFocus Event of the textbox
>>>>
ON KEY LABEL '.'
>>>>This will work and solve your problem.
>>>
>>>... KEYBOARD "," converts periods to commas, alright. The problem is that the cursor jumps to the beginning of the textbox!
>>>
>>>I had decided to postpone this problem - but as you can see, I am sort of addicted.
>>>
>>>Hilmar.
>
>I tried with and without CLEAR. I also tried the PLAIN option. The first thing I did was to copy your code verbatim.
>
>The symptoms are the same every time:
>
>If the textbox has decimals, and I type e.g. "4.5", after the decimal point the cursor jumps to the right of the decimal point (displayed as a comma), and the integer part gets lost.
>
>Otherwise, the cursor jumps to the beginning of the textbox, but no text gets lost.
>
>Hilmar.
Alexandre Palma
Senior Application Architect
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform