Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom Objects
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00531332
Message ID:
00531350
Views:
15
Bob,

If you drop your custom object onto your form, you'll make it impossible to easily use a new subclass of your object. This is because your form contains a specific instance of one subclass.

One way of dealing with this is to delay adding the class until runtime. Your form can have two properties, one for the classlib and one for the classname then at runtime:

set classlib to (this.cCustomClasslibName) additive
this.AddObject( "oCustom", this.cCustomClassName )

>If I were to create a custom object, for keeping track of few propertities like
>say username and userlevel (application level)
>and if I put the object on my base class forms....
>
>How could i set the propertites, of the base object once, and have all the other forms which the object be able to read the propertites. ?
>
>I hope that I am making sense here. what I am attempting to do, is not use a public array to store this type of but to use a more oop method ... should this,. or can this be done ?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform