Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo box validation
Message
De
05/03/2002 06:38:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
05/03/2002 01:10:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00627764
Message ID:
00628284
Vues:
25
>Thanks Hilmar,
>
>If I am using lostfocus to validate. And condition is not tru than my cursor not staying in same filed. if i write. Thisform.text1.setfocus
>its giving error cannot call from valid,when,rangelow range hign. while i am using this line in lost focus I an not using any four method. How can cursor stay in same file if i use lostfocus. Please write actual code.

I can't post actual code, since I don't do this - I tried to help with a few ideas, which may, or may not, point you in the correct direction.

What I do is forget about controlling the focus for validation purposes. Instead, I check a series of rules only when the user tries to save. IMO, this approach is much simpler.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform