Wren Plugin for Xojo

VM.GetVariable Method

Looks up the top level variable with given name in resolved module name and stores it in specified slot.

GetVariable(
   moduleName as String,
   variableName as String,
   slot as Integer)

Parameters

moduleName
Name of the module to search for the variable in.
variableName
Name of the variable.
slot
Slot number to put the variable in.

Remarks

Make sure you have slot to put the variable in first with:


vm.EnsureSlots(1)

See Also

VM Class