PDA

View Full Version : Menu Example



bobbie
02-06-2006, 04:03 PM
Anyone have a menu e xample so I can see how it is done?
I have tried it but it won't work for me .
I have this .


if e_id == 101 then
Application.Exit();
elseif e_id == 201 then
File.OpenURL("http://www.yahoo.com", SW_SHOWNORMAL);
elseif e_id == 202 then
File.Open(_SourceFolder .. "\\AutoPlay\\Docs\\test.pdf", "", SW_SHOWNORMAL);
end

TJ_Tigger
02-06-2006, 04:47 PM
I simply copied and pasted the code you had into the On Menu event for the page. I changed the e_id to e_ID as variable are case sensetive. I then created the menu to match the options you had in your code, everything seems to work. Check it and see.

Tigg

bobbie
02-06-2006, 04:57 PM
Thank you for your help . I will look at it now.

Thank you , it works now .
I will save that for anyother times I need to make a menu . lol