Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add open form instance (or window) to menu?
Message
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00696111
Message ID:
00697391
Views:
12
>That does look quite a bit simpler than what I was doing. I'd forgotten about GetBar() and it never came up in the xref for any of the other menu commands. Actually, the Microsoft docs are noticeably lacking in this area and often lack meaningful examples, IMO. But that's where UT comes in: somebody can always come up with the missing piece of a puzzle!
>
>Thanks

Lynda,
Did you get the removal working?
         lcCaption = ThisForm.Caption
	lnTot = 0
	lnTot = cntbar("Window")
	for lnBar = lnTot to 1 step -1
	  if prmbar("Window", getbar("Window", lnBar)) = lcCaption
	    release bar getbar("Window", lnBar) of Window
	    exit
	  endif
	endfor
HTH
Caroline
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform