Page "On Menu" help, please.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • David REMD
    Indigo Rose Customer
    • Apr 2007
    • 173

    Page "On Menu" help, please.

    A little help, please...

    I am using multiple menus in my project and am having trouble getting the menus to execute using the Application.LoadScript.

    I have built two menu scripts, one that loads the menu bar (this part is working fine) and one that executes (or rather doesn't ).

    Code:
    if (e_ID == 101) then
    	-- Do anything
    elseif (e_ID == 102) then
    	-- Do anything
    elseif (e_ID == 103) then
    	-- Do anything
    elseif (e_ID == 104) then
    	-- Do anything
    elseif (e_ID == 105) then
    	-- Do anything	
    elseif (e_ID == 201) then
    	-- Do anything
    elseif (e_ID == 202) then
    	-- Do anything
    end
    When I use the Application.LoadScript on the => Page=>"On Menu", it does not work. If I place the actual code on the =>Page=>"On Menu" it works.

    Is it possible to load a menu script on the =>Page=>"On Menu" instead of placing the hard code on every page?
  • holtgrewe
    Indigo Rose Customer
    • Jul 2002
    • 779

    #2
    David
    You might try the Application.GetPageScript() & Application.SetPageScript() to copy scripting from page to page...
    hth

    Comment

    • David REMD
      Indigo Rose Customer
      • Apr 2007
      • 173

      #3
      :yes That works! Thank you!

      Comment

      • RizlaUK
        Indigo Rose Customer
        • May 2006
        • 5552

        #4
        "Application.LoadScript" dose not work from certan events, i cant remember exactly what ones but on menu WAS one of them

        if the menu code is global to the application, put the code in the on menu application event and not the page "menu>>actions>>on menu"
        Embrace change in your life, you never know, it could all work out for the best

        Comment

        Working...
        X