Partager via


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

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

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

See Also

Reference

AddObject Method

RemoveItem Method

RemoveListItem Method

Other Resources

Methods (Visual FoxPro)