Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When Event
Message
 
À
23/01/2001 19:07:36
Raymond Humphrys
Michigan Department of Community Health
Bath, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00467682
Message ID:
00467698
Vues:
9
>If you want to test for a condition before an object has focus how do you exit from a WHEN event and set focus to another object? You are not allowed to SETFOCUS within a WHEN event.
>
>thannks

Hi Raymond,

For example you could use this workaround:
* Text5.When()
IF mycondition
	KEYBOARD "{TAB}"
ENDIF

* Text5.LostFocus()
IF mycondition
	THISFORM.text7.SETFOCUS()
ENDIF
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform