PythonScript Xojo Plugin |

# PythonInstance.ObjectField Method (console safe)

Gets or sets a object field on the class instance.

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 value to set

#### Returns

Object

#### Remarks

The field does not have to exist on the class. If it does not exist then its added when the setter is called.
Object fields store Xojo objects inside Python instances or variables.

#### See Also

PythonInstance Class