Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does a menu item already exist?
Message
 
 
To
12/04/2005 20:38:44
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
01004016
Message ID:
01004018
Views:
21
Would this help?
FOR i=1 TO CNTBAR("_MTOOLS")
	? GETBAR('_MTOOLS', i)	
ENDFOR
* or
lnBarNum = 123
llExists = .T.
TRY
	= PRMBAR('_MTOOLS', lnBarNum)
CATCH
	llExists = .F.
ENDTRY 	
>
>There was a stuped idiot, that forgot how to check a menu for a existing menu bar.
>
>How do I determine if a menu bar I created already exist in a menu. I am tring to add a menu bar to the Tools menu bar, but do not want to duplicate or stomp on anybody else's definition.
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform