Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple set focus not working
Message
De
28/03/2017 11:43:37
 
 
À
28/03/2017 11:40:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01649441
Message ID:
01649442
Vues:
66
>Why, oh, why...
>
>I have a simple form using one table. All the tab orders are correct. I have this in the 'activate' :
>
>IF reccount()>0
>	thisform.list1.SetFocus
>ELSE
>	thisform.txtclient.setfocus
>ENDIF
>DOEVENTS FORCE  &&added to try forcing it, but it makes no difference!
>
>
>NO WAY either will receive the focus with, or without records in the table... Have done hundreds and hundreds of forms, and all work, nut not this one!
>Any ideas will be maaaavlis - thanks!

I have seen cases where you must add a short delay. Worth a try...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform