Skip to content

execute script

codeCatLady edited this page Sep 13, 2022 · 6 revisions

execute script allows you to send commands to LCS from LCB, which allows you to do anything you can do in LCS, that you can't do in LCB, like putting up the answer dialog or putting values in the message box

  • The syntax is execute script Script [ in Object ] [ with Arguments ]
  • Don't forget to add a use com.livecode.engine at the top of your .lcb file
  • execute script cannot be called while OnCreate(), OnLoad(), or OnPaint() handlers are running.
  • You CAN use execute: syntax to assign the default value of a property.