Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling setfocus from text box giving error
Message
De
10/03/2002 02:19:21
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00629840
Message ID:
00630681
Vues:
19
Hi,
Thanks .. Could you explain me how to use call stack..please.
Regards,
Sajjad

>That usually happens if one of mentioned methods is in the call stack. I.e. the chain of firing methods which leads of your LostFocus() has som other control Valid (or rangehigh... etc) Try to check the call stack when this error happens and see where it all starts.
>
>>Hi,
>>I am using following command on fresh form its working while same command putting on my present form text box lostfocus giving same error canot call set focus..from when,valid, range high ,range low.....
>>
>>thisform.label1.caption=""
>>If mamtp="C"
>>this.parent.combo3.setfocus()
>>nodefault
>>endi
>>
>>
>>Although nodefault not required still I checked...I am using VFP6. Where should I check further???Please.
>>
>>>NODEFAULT is not really required here. See message#343379
>>>
>>>>You cannot call SetFocus() from Valid() but you can from LostFocus(). Don't forget to add NODEFAULT to prevent default VFP behavior.
If abc = tru
>>>>   thisform.xyz.setfocus()
>>>>   NODEFAULT
>>>>endif
>>>>
>>>>>Hi,
>>>>>On text lostfocus/valid event i am using certain validation If validation tru I want to skip 2 text box for this I am using
>>>>>example
>>>>>
>>>>>If abc = tru
>>>>>
>>>>>thisform.xyz.setfocus()
>>>>>
>>>>>endif
>>>>>
>>>>>but this not going on desire control and giving error cannot call setfocus fromwhen,valid,range high,rangelow.....
>>>>>
>>>>>Any solution to solve problem...please.
Sajjad Ahmad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform