Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Text box cannot retain focus if value is .NULL.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00459901
Message ID:
00460039
Vues:
27
>>try "set confirm on"
>
>no effect. I did manage to get it to stay in the textbox, but once the value = .NULL., it won't hold a different value. After adding a check in the gotfocus method, I was able to stay in the textbox and edit, but it reverted to null after moving to another control, so once a null value is ever entered, it cannot be changed to something else
>

This sounds like it dates back to the beginning of Xbase when doing a GET on a field with an empty string would just skip past that field. I think to get around this, you can't bind the textbox directly to the field if you want to accept nulls in the field. Use a form property instead, and if the field is null, you'll have to pad it out with spaces so the user can actually enter something. How are you making a distinction in appearance between spaces and a null?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform