Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Couple of questions please
Message
From
12/05/1998 12:34:37
 
 
To
11/05/1998 23:34:48
General information
Forum:
Visual FoxPro
Category:
Stonefield
Miscellaneous
Thread ID:
00098656
Message ID:
00098794
Views:
29
Hi Bill.

>How do I get the captions and other properties from SDT into the design view (properties) of your classes/forms or do I have to do this at runtime?

Captions are easy: the caption you enter into SDT is actually stored in the database container, so when you drag a field and drop it on the form, VFP will create a label for you with the desired caption. For other properties, such as ToolTipText, you can either get it at runtime using code given in the SDT manual or you can create a simple builder that reads the appropriate information from SDT's meta data and sets the properties for the controls. The latter is a more complicated approach <s>, but I can give you some pointers if you'd like to do that.

>What is the best way to integrate the security system they suggest
>(user-defined property called Security on each field) with the way you have it in the Mere Mortals class structure?>

I suggest sticking with the CBMM security system. The security described in the SDT manual is fairly simplistic and really intended when you aren't using a framework with a robust security implementation like CBMM has. However, if you want to use the mechanism described in the SDT manual, you could change the Init method of the classes you use for creating controls on a form to get the security setting of the ControlSource field and then make the control ReadOnly or not Visible as necessary.

Doug
Previous
Reply
Map
View

Click here to load this message in the networking platform