Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataSessions and the control thereof
Message
From
22/05/2009 12:31:18
 
 
To
22/05/2009 12:27:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01401547
Message ID:
01401563
Views:
39

If all data forms are based on a class, add the method there
Then the toolbar can just call _screen.ActiveForm.IsDeleteAllowed()

The test for BusinessObject and AllowDelete, etc can be done in the form's IsDeleteAllowed() method


>I think this toolbar is part of all data forms and the method that is being called is from the delete toolbar
>
>
>>Dorris,
>>
>>Can you move the method that defines whether delete is allowed to the form ?
>>
>>If the toolbar calls a method of the form, it will be executed in the form's datasession. Hence there's no need to switch datasessions back and forth in the toolbar
>>
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform