Error go to card 1 of stack from a Menupick

JosepM jmyepes at mac.com
Thu May 27 07:59:41 EDT 2010


Hi Mark,

I guess that error is complete...

The code on the card 3, no preopenstack, only openstack.

on Openstack
   
   Global tLine
   put the menuHistory of btn "opt_search_supplier" of card 3 into tLine
   
   put "0 records found." into fld lbl_status of card 3
   set the uUTF8Text of fld f_buscar_supplier of card 3 to empty
   
   ## Establecer tamaño del stack y centrar
   if the environment is not "development" then
      set the resizable of me to false
      set the height of me to 575
      set the width of this stack to 865
      set the loc of this stack to the screenLoc
   else
      set the resizable of me to true
   end if
   
   uiNewSupplier
   uiRefreshSupplierList
   
end Openstack

The code on the menu.

on menuPick pChosen
   replace "..." with empty in pChosen
   
   --set the lockMessages to  true
   switch pChosen
      case "Items"
         put glxapp_getProp("executable folder") & "/components/" &
"s_main_productos_v1.rev" into tStackName
         go to card 1 of stack tStackName
         break
      case "Suppliers"
         put glxapp_getProp("executable folder") & "/components/" &
"s_main_productos_v1.rev" into tStackName
         go to card 3 of stack tStackName
         break
      
   end switch
      --set the lockMessages to false
end menuPick
-- 
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Error-go-to-card-1-of-stack-from-a-Menupick-tp2232529p2232977.html
Sent from the Revolution - User mailing list archive at Nabble.com.



More information about the use-livecode mailing list