Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remind me how, please?
Message
De
27/10/2008 12:41:07
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01357393
Message ID:
01357424
Vues:
24
>>I would recommend you use the lostfocus to do that. You can use something like:
>>
>>this.parent.txtdatebeg.setfocus()
>>
>>assuming the beginning date textbox sits on the form directly and is named txtdatebeg
>>
>>if you want to move focus back to that control from another control. You can check in the lostfocus of each control if beginning date is empty and ending date is not or vice versa and display your message and set focus where you need it using the control's setfocus(). You just cannot set focus from a valid. Is it a date or datetime field?
>>
>
>If you return number that corresponds the control's TabSequence from the valid event (difference between current control and that one), you'll set focus on it.

I know that, but I associate that with the older foxbase means of setting focus. If the sequence of controls ever changes, returning the number sets focus to a different control.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform