Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp50 - Calling the Click Event
Message
De
13/03/1997 08:56:58
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00023928
Message ID:
00024066
Vues:
41
>>>>>>If you are on a form, how do you call the click event
>>>>>>that is on another form?
>>>>>
>>>>>
>>>>>MyForm.MyObject.click()
>>>>>
>>>>>You can error check with:
>>>>>
>>>>>if !MyForm.MyObject.click()
>>>>> ...Handle Error...
>>>>>endif
>>>>>
>>>>>Tom
>>>>
>>>>Hi Tom...
>>>>
>>>>That does not work. Maybe I am doing something wrong.
>>>>These form are not in a formset.
>>>>code...
>>>>
>>>>In Update.scx
>>>>
>>>>click event of some command button.. in customer.scx (another form)
>>>>code...
>>>>update.myobject.click()
>>>>What now??
>>>
>>>
>>>Try looking at the Debug menu and see if your pathe to the click event is correct.
>>>
>>>Also, watch you Key Words. UPDATE is also a reserved word in VFP. You can always name your instantiated objects as 'frmUPDATE' which now makes it more legitimate. This is just a good habit to get into.
>>>
>>>Tom
>>
>>Thanks... I wil check the Debug menu.. thanks for the naming tip..
>
>Robert: Be sure you have your entire object list correct from the form to the control. It might be Myform.MyPageframe.Mypage1.Mytextbox - and that's just for a textbox on a pageframe! It's very easy to miss or misspell one of the object levels.
>
>HTH
>Barbara

Thanks Barbara... I will check that out...
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform