Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Deleted
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00105752
Message ID:
00106147
Views:
30
>My first question, Are there any problems, or side effects to setting deleted ON, that maybe I should be made aware of. Also, where is the best place to issue "set deleted on"? I tried to put it in the config.fpw but it doesn't seem to work there. I see by looking in help that this command is scoped to the current datasession, so would I need to issue this command in every form?

Paul,
Pat is correct in saying you should put SET DELETED in the LOAD method of your base form class, but don't forget that if you add any code in a subclass of the form that you will have to insert a 'dodefault()' call.

I find it easier to add a form method to my base form - CallLoad(). My base form does the SETs (Deleted, exclusive, century, etc.) and the last command is thisform.CallLoad() I just add any code I want in a subclass of the base form into the CallLoad() method. I never have to worry about the underlying code.

Credit for this goes to many people, but especially Drew Speedie who uses this approach in his Visual MaxFrame for MANY methods.

Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform