Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Class
Message
From
03/03/2000 17:04:59
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00340494
Message ID:
00341527
Views:
37
>If OpenTables were an event it would say so in the property sheet, just like it does for all of the other events. OpenTables is called a method in the property sheet, BeforeOpenTables is called an event.

Yep, but one thing bugs me about this though, if you put a comment in an event, nothing else, you would expect everything to work fine, and it does. But, you would expect a VFP Base method with nothing in it but a comment to not do its thing, but it does.

For example, put:

*Test

in the Show() method. The form still shows. Unlike other methods, where that comment would disable the method from being inherieted.

So, there is no difference between writing to VFP Events and VFP Methods? No special considerations, nothing. And the ONLY difference between them anywhere is that calling an event explictly doesn't execute the VFP Procedure associate with that Event (like calling LostFocus()), where methods do (like calling Hide()).

If you really want to change around the wordings:

Writing to a VFP Event = Writing to a VFP Event
Writing to a VFP Method = Writing to a VFP Event
Calling a VFP Event = Firing a User Defined Method
Calling a VFP Method = Doing a VFP Method and its Event code

Would you agree?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform