Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Method code at Instance Level
Message
From
30/03/1998 08:31:52
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, United States
 
 
To
30/03/1998 08:09:45
Steve Camsell
Windmill Associates
Bath, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00088041
Message ID:
00088061
Views:
29
>Sorry Matt,
>
>I probably wasn't clear enough in my original message. The custom class has been defined programatically with a DEFINE CLASS statement that has beeen added to the project via a SET PROCEDURE TO where is the name of the .prg file that contains the class definition code.
>
>>I don't understand why you don't add the class visually. Just because the custom class doesn't have a user interface, doesn't mean you can't add it visually.

No apology necessary, I didn't read the original post correctly.

Well, the only way around this I see is to define subclasses and have those added to your form at run-time.

BTW, IMO, this is a terrible implementation of OOP development. But, if you're restricted by your environment, I understand. Been there, done that. Anyway, again IMHO, probably the best way to do this is to have a 'custom subclass' prg that gets called from the load event from the forms that need to use the classes in your SET PROC statement. From there you can programmatically sub class the objects you need and then add them in the init of the form.

HTH
Matt McDonnell
...building a better mousetrap with moldy cheese...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform