Hi!
The approach used for loading control properties in VB and VFP is
very different. VFP do not have property bags. You can, however, manipulate the property values before they loaded by 3 ways:
1. Define the function or expression as a property value. In VFP in the properties window you can specify =MyFunc() as a value of the property. This way MyFunc will be called during loading of the class of the object into the memory before first use for object creation. MyFunc than can contain any VFP code you want.
2. Edit VCX/SCX file on the fly. This way have a limitation - VCX/SCX file should be stored on the disk and not included in the EXE file that increase the number of files required to be installed on each client machine. This also exposes the source code partially to anyone.
3. The best approach is to use OOP better. Create an abstract class with all properties and methods. Than you can use a set of the PRG files that define objects based on that class using DEFINE CLASS structure.
HTH.
>Can I create a VB propertybag object in VFP?
>
>I was reading about these recently and they sound interesting...
>
>Consider the code:
>
>DIM oPB New PropertyBag
>
>I guess I need to know the class name...
>i.e.
>oPB=CREATEOBJECT("??????????????.PropertyBag")
>
>Thanks
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.