General information
Category:
Forms & Form designer
>>>The load of my base form is where I set delete, exclusive etc.
>>>If I add a table to DE ( private data ) and then run form, if the first record is deleted it shows up. I go to BeforeOpenTables and set dele on and this is cured because it fires before load of form. Is there a way to set this as default for BeforeOpenTables ?
>>>
>>>Thanks!! CB
>>
>>I have a method in my base form called .SetEnvironment() which does what your load is doing. The only difference is that I make this call as the first statement in the .BeforeOpenTables event of the DE. That way I know the environment is set when it gets to opening the tables.
>>
>>Steve
>
>Yes good idea !! But do you have to go to each form that you use DE on and add .SetEnviroment() statement in .BeforeOpenTables or is there a way to define that as default for .BeforeOpenTables ?
>
>CB
The SetEnvironment() method is a good idea. In your base form class, you can create some properties such as FormSetDeleted, FormSetExact, etc. You can set these properties to .T. or .F. at design time. Then at run time, the SetEnvironment method can read these properties and do its thing.
John
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only