Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp50 - Calling the Click Event
Message
 
To
12/03/1997 14:28:14
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00023928
Message ID:
00023942
Views:
31
>>>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
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform