Skip to content

CreateNamed - cObject

Include: Built in; no package required.

Creates a named child object at runtime.

Type: Function

Return data type: Handle

Parameters

Name Type Description
eClass Integer Class reference returned by RefClass(...).
sName String Local object name assigned to the new object.

Syntax

Function CreateNamed Integer eClass String sName Returns Handle

Call

Get CreateNamed (RefClass(cObject)) "oDynamic" to hoObj

Description

CreateNamed creates a child object under the receiver, assigns the non-empty local name, sends the construction hooks, and returns the new object handle. Empty names or invalid class references raise a DataFlex error.