Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFocus() & GetFocus() problem
Message
De
27/02/2001 12:54:05
Paul Robinshaw
Silkworm Technologies Limited
Macclesfield, Royaume Uni
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
SetFocus() & GetFocus() problem
Divers
Thread ID:
00480165
Message ID:
00480165
Vues:
32
Hi All,

I'm been wrestling with a problem for a couple of days now.

I have a combo that's sat on a form. My toolbar has a Save method and calls _screen.activeform.activecontrol.SetFocus() to ensure the combo's value gets updated properly before a save. Not elegant, I know<s>. Anyway, SetFocus calls various methods in turn (VFP's behaviour not mine) and the last piece of code to be executed before control is returned to the line after SetFocus is in the GotFocus of the combo's parent. If I allow this to execute I get a wierd "syntax error" message. This is odd as there's no more code to execute. I assume I've upset VFPs default behaviour but I can't see what I've done wrong to get round the problem.

Any ideas?

Regards

Paul
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform