Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement