I've a long established menu. I added to it the option to clear the
thematic map layer. Then I realised that if one doesn't exist, and this
option is selected, I naturally get a layer-doesn't-exist error. So I
initiated the menu item to disabled until a them. Map is created (via
the last line of code below).
But when I invoke the app I get an "internal error 33012"
I've confirmed that this line is causing the error.
CLEAR_THEM_MAP_ITEM_ID is defined as = 100, and the example in Help uses
100 literally. Although it flies in the face of good programming
practice, using a coinstant, I tried substuting 100 for
CLEAR_THEM_MAP_ITEM_ID in the code but still got the same error.
Anybody any ideas?
'ppreciate it.
Terry McDonnell
________________________________________ CODE FOLLOWS
Create Menu "&Census" as
"&Select Analysis Profile..."
...
"&Clear Thematic Map"
ID CLEAR_THEM_MAP_ITEM_ID
HelpMsg "Clear any Thematic Map from display"
calling CLEAR_THEM_MAP
...
Alter Menu ...
Alter Menu Bar Add "Census"
Alter Menu Bar Add ...
Alter Menu Item ID CLEAR_THEM_MAP_ITEM_ID disable
_______________________________________________
Mapinfo-l mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l