Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PropertyBags
Message
From
18/06/2001 10:49:35
 
 
To
18/06/2001 10:40:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00520597
Message ID:
00520605
Views:
14
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.com
ICQ #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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform