PythonScript Xojo Plugin |

# PythonModule.ObjectField Method (console safe)

Gets or sets a object field on the module. Object field here means that Xojo or Real Studio object gets stored in a Python script

ObjectField(
name as String) as Object
ObjectField(
name as String
assigns value as Object)

#### Parameters

name
  Name of the field to set.
value (assignment parameter)
  The object value to set

#### Returns

Object

#### Remarks

The field does not have to exist on the module. If it does not exist then its added when the setter is called.

#### See Also

PythonModule Class