LuaScript Xojo and Real Studio Plugin

LuaScript.LoadScript Method (console safe)

Loads a Lua script from a string. Any global code gets executed when loading the script if any such exists in the script. Functions and classes do not get executed until their called.

LoadScript(
   source as String) as Boolean

Parameters

source
The script to load

Returns

Boolean
True if loading was successful, else false.

Remarks

If loading fails then you can use the GetLastErrorMessage function to get hint of why loading failed.

See Also

LuaScript Class