CoreClasses Xojo Plugin

EinhugurIntrospectionHelpers.CreateObject Method

Creates instance of class by name.

CreateObject(
   className as String) as Object

Parameters

className
Name of the class to create instance of.

Returns

Object
The newly created class instance (its constructor not having been called yet) or nil if the class type could not be found.

Remarks

This can be useful when creating class when you do not even know its Introspection type.

You must call the classes constructor after creating the instance. Or use the new instance only to get its Introspection type so you can then create object of the given type in normal way.

Supported Platforms:

  • macOS Intel 32 bit
  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • iOS
  • Unsupported Platforms:

  • Linux ARM 64 bit
  • See Also

    EinhugurIntrospectionHelpers Module