InvalidParentException

From Xojo Documentation
Jump to: navigation, search

Class (inherits from RuntimeException)

You tried to get the parent of a control using the Parent property of the Control class, but its parent is in a different window. The parent control must be in the same window as the control or the parent is the containing window, not another control.


Example

This example tries to capture an invalid parent control.

me.parent=sendDemoWindow.PushButton1

exception err as InvalidParentException
MsgBox "An InvalidParentException occurred!"

See Also

Parent property of the Control class; Exception, Try statements; RuntimeException class.

Personal tools
Namespaces

Variants
Actions
Main
Content
Starting Out
Dig Deeper
More Help
Toolbox
About