The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 menu name
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Jeroen Spitael

USA
4 Posts

Posted - 03/06/2000 :  2:04:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I would like to have the user select something of a list (menu choices) and then use that information to populate a field. I can access the menu.lastexeid and switch what the user has select with menu.check, but can I access the name of the menu the user has selected? I'm building the list of choices dynamically and therefore won't necessary know each menu name ahead of time.

greg

USA
1380 Posts

Posted - 03/07/2000 :  2:00:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can not access menu 'names' except to rename them based on ID.

If you need that information for your menus then you should gather that information as you make your menus. For example, if you execute a script that creates a menu option such as

menu -i (My Option) {run.section(mymenu.ogs,myoption);}

you should then execute

last = menu.lastid;

to retrieve the menu id number. Then you can tie this id to the "My Option" menu.

Perhaps you could save this information in a hidden worksheet. Origin Professional users might wish to save the information to an external file.

[This message has been edited by Greg (edited 03-07-2000).]

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000