Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Property oCDE not found
Message
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00660981
Message ID:
00662106
Views:
48
>I just didn't realize that I couldn't stick code in the same places that I did in plain VFP.

You can put your code where you like. However, you have to remember that the framework classes (like the form class(es) in your case) add all manner of additional functionality over and above that provided by the VFP base classes. If you subclass these event/method, you will break the inheritence chain. So, just make sure that if you add code to an event/method, you press F9 and check whether there is any parent code. If there is, analyze it and establish whether it a) needs to function (be called) and b) returns a value. If so, add your code either before or after calling dodefault(). You will get used to the best sequence of running subclassed code and calling parent code. One of the biggest problems that initially arises for new Codemine users is subclassing events like the form load and init methods and forgetting to return dodefault(). In these cases, everything will go wrong. Take a look at the superclass menu options and play about with them a little. They will help you add the typical dodefault calls that you will routinely encounter.

>It looks like fun to be had by all!

You said it <s>.
-=Gary
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform