I'm trying to set the visible/enabled properties of a toolbar's Cut/Copy/Paste buttons based on the existance of the System Edit Menu. The following code works properly:
Button.Enabled/Visible = ! SKPPAD('_medit','_med_copy')
The following fails:
Button.Enabled/Visible = POPUP('_medit') AND ! SKPPAD('_medit','_med_copy')
In the debug window, POPUP('_medit') evaluates to .F. I've verified that the pad name is _medit (it was created with the Menu Wizard and the pad contains all of the default edit functions).
The toolbar buttons contain code like:
SYS(1500,'_med_copy','_medit')
and function properly. I'm stumped as to why SYS(1500) and SKPPAD recognize the _medit pad but the POPUP() function doesn't. POPUP() recognizes my user defined pads by the names I've specified. What am I missing?
TIA
Dan
St. Petersburg, FL
"I started out with nothing and I still have most of it left"