Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form's DataSession
Message
De
04/12/1997 10:57:01
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00063803
Message ID:
00063806
Vues:
56
>I have a menu system that has some choices that are only available if a certain condition exists in a private datasession of a form [e.g., !eof("MainTable")]. However, when the form is instantiated and the table is opened and displayed in a grid, the choice does not activate because the menu is still "looking" at the Default DS instead of the private DS established by the form (according to the VFP3 View window). If I manually switch to the Private DS in the View window, the menu item is now active.
>
>I know I can explicitly SET DS TO the DSID of the form, but it seems that with everything else VFP handles so elegantly (and automatically), this would have been handled as well. Or am I missing something?


I think I would have to steal Ed Pikman's idea here. Don't rely on environment for setting menu items. Make the form do the work.

HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform