Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with setfocus
Message
De
05/01/2007 03:52:15
Reza Meamar
Homa Programming Group
Shiraz, Iran
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Divers
Thread ID:
01182657
Message ID:
01182687
Vues:
18
I solved it by using from KEYBOARD '{TAB}'
But i dont know is it standard?
thanks for your help


>Remove calling SetFocus() or move DO FORM to another place (use can use timer)
>
>MartiJ
>
>>Dear Martin,
>>oh yes,you are right.
>>what must i do?
>>thanks
>>
>>>Hi Reza,
>>>
>>>Because you call method SetFocus() of any object in form GetInfo.scx on running it and you call this form from any this event (When, Valid, RangeHigh,RangeLow event). Check if any event from preview list is in Call stack.
>>>
>>>This is not bug, it's feature. Check pass-word for method Setfocus in Help .
>>>
>>>MartiJ
>>>
>>>>Dear all,
>>>>I have a form for get some infos, in this form (GetInfo.scx) I have a command button that in its click event I put Thisform.text1.SetFocus in last line.
>>>>When I run this form separately, it works correctly. But when I call this form from another form with ( DO GetInfo.scx WITH 1,2 ), and when I click command button, I get error 2012 (Cannot call SetFocus from within a When, Valid, RangeHigh or RangeLow event )
>>>>WHY?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform