Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No such menu item
Message
From
23/05/2001 02:56:31
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00510194
Message ID:
00510210
Views:
28
This message has been marked as the solution to the initial question of the thread.
>Hi everybody,
>
>I'm getting error on this line of code:
>* determine if program execution is currently suspended
>suspended = not thisform.ehdp_isruntime ;
> and not SKPBAR('_MSM_PROG', ;
> _MPR_RESUM) && enablement of the VFP Program menu's
>
>The error is: no such menu item is defined. It's firstly caught by Error Handler, but then immediatelly shows VFP error. The question is: how to prevent it? Is this kind of error untrappable?
>
>Thanks in advance.

Nadya,
I don't know if it's trappable but I prefer to check existence then to rely on error checking :
lnBars = CntBar('_MSM_PROG')
for ix = 1 to lnBars
 if (_MPR_RESUM) = GetBar('_MSM_PROG',ix)
   ? 'Suspend exists and '+;
     iif(SKPBAR('_MSM_PROG', _MPR_RESUM),'dis','en')+'abled.'
   exit
 endif
endfor
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform