Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataSessions and the control thereof
Message
De
22/05/2009 12:31:18
 
 
À
22/05/2009 12:27:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Divers
Thread ID:
01401547
Message ID:
01401563
Vues:
40

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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform