Josep,

Do you still get an error if you temporarily disable the openstack handler? I.e. if only the menuPick handle runs?

I used http://runrev.info/error.html to parse your error. The beginning of the error report is:

Type: Object (can't set this property)
Object name: script
Line:(row 0 col 0)
Hint:

Apparently, there is a problem with a property being set. If the script you posted is indeed a card script, then it will throw an error at

 set the resizable of me to true

because cards don't have a resizable property. You need to replace "me" with "this stack". Don't forget to make the same changes in the part of your script that runs in a standalone only.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Economy-x-Talk is always looking for new projects. Contact me for a quote http://economy-x-talk.com/contact.html Download Clipboard Link http://clipboardlink.economy-x-talk.com and share the clipboard of your computer over the local network.

On 27 mei 2010, at 13:59, JosepM wrote:


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


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to