Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[Color Red]Displaying a Variable Value as a Menu Option

Status
Not open for further replies.

tryn2learn

Programmer
Jun 26, 2000
24
US
Is there a way do display the value of a variable as the prompt in a menu?
 
Something like:

Code:
SET SYSMENU TO
SET SYSMENU AUTOMATIC

DEFINE PAD SomeItems OF _MSYSMENU PROMPT "Variables" COLOR SCHEME 3 ;

ON PAD SomeItems OF _MSYSMENU ACTIVATE POPUP ItemList

DEFINE POPUP ItemList MARGIN RELATIVE SHADOW COLOR SCHEME 4

FOR ndx = 1 TO 10
   DEFINE BAR ndx OF ItemList PROMPT STR(ndx)
   ON SELECTION BAR (ndx) OF ItemList ;
      DO ListProc WITH BAR()

NEXT


******************************************
PROCEDURE ListProc
PARAMETERS nBar

WAIT WINDOW 'Bar number :' + STR(nBar)

RETURN

Dave S.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top