Re: Menu question
Posted in 1992
In X-Informix-List-Id <news.1406>, Yoram Tal asks: >I would like to know how do you incorporate variables into the COMMAND >keyword for menus to be variable depending on circumstances. You cannot, unfortunately. The menu definition only accepts character constants, not variables. The closest you can get would be to have separate menus defined, and then use "if" statements to use the appropriate menu: IF (has_delete_perm = TRUE) THEN MENU COMMAND "Add" "Add a record" CALL add_rec() COMMAND "Delete" "Delete a record" CALL del_rec() COMMAND "Exit" "Exit menu" EXIT MENU END MENU ELSE MENU COMMAND "Add" "Add a record" CALL add_rec() COMMAND "Exit" "Exit menu" EXIT MENU END MENU END IF >yoram tal >yoram@frcs.alt.za phone: (home) +27 11 783-2433 (Johannesburg,South Africa) You trust us with your home phone number?!?! Todd Glidden CSC Corp. Sacramento Army Depot Never, ever call me at home to talk about Informix. Ever.