Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox Hell!
Message
De
29/03/1999 12:18:38
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Textbox Hell!
Divers
Thread ID:
00203045
Message ID:
00203045
Vues:
42
I've got a textbox with a numeric control source N 9 0

The non-default properties of this text-box are:

Format RK
Input Mask 999,999,999
Max length 11
Select on entry .T.

Whenever I add a new record and initially tab into the field, nothing appears in the field, there is no value to diplay. I enter a number and the textbox looks like this | 8 0| so that when I tab out of the field the value in the field is not 8 but 80. The inputmask is the prime culprit because when I remove it the problem goes away. Why? What is causing this?

I need to show the field with the comma's for beautification reason (user's like it alot) but without the input mask I would have to write a routine in the valid of each numeric field to display it like I want it.

I have tried, in my add button, stuffing a zero into the field.value and refreshing the field so the select on entry selects the entire field, however, this does not work when the user clicks into the field (8 becomes 80 again).

I have also tried a fresh textbox with no other non-default values than the control source and the inputmask (8 = 80). When the input mask is removed 8 = 8. Problem solved but no pretty comma's.

Any suggestions are welcomed. This is driving me crazy!

Brad

TIA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform