RemoveObject Method

Removes a specified object from a container object at run time.

Object.RemoveObject(cObjectName)

Parameters

  • cObjectName
    Specifies the name of an object to remove. If the object does not exist, an error occurs.

Remarks

When an object is removed, it disappears from the screen and can no longer be referenced.

See Also

AddObject Method | RemoveItem Method | RemoveListItem Method

Applies To: Column | CommandGroup | Container Object | Custom | DataEnvironment | Form | FormSet | Grid | OptionGroup | Page | PageFrame | _SCREEN | ToolBar