VFP9SP2
Typically I use static menus, but this time I'm trying to add a menu
item and items underneath it at runtime. Here's my attempt to code it:
DEFINE POPUP "Location" MARGIN RELATIVE SHADOW COLOR SCHEME 4
loBiz.GetNailerLocations("curNailerLocations")
SELECT curNailerLocations
SCAN
liCnt = CNTBAR("Location")
lcCmd = [DEFINE BAR ] + ALLTRIM(STR(liCnt + 1)) + [ OF Location
PROMPT "] + ALLTRIM(curNailerLocations.cDescription) + ["]
&lcCmd
lcCmd = [ON SELECTION BAR ] + ALLTRIM(STR(liCnt+1)) + [ OF Location
oUtils.SetLocation("] + ALLTRIM(curNailerLocations.cLocID) + [")]
&lcCmd
ENDSCAN
Sadly, it's not working. What am I doing wrong? You can see I'm using
the cursor's contents to dynamically build the menu. I added that
MARGIN RELATIVE SHADOW COLOR SCHEME 4 part after looking at a build
menu's MPR file.
tia,
--Mike
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.