ISProfileForm.Parent

Description

The property returns the parent control of the embedded form, otherwise it returns nothing.

Syntax

object.Parent

Part Attribute Type Description
object Required
The object always implements the ISProfileForm interface
Restriction: This property is readonly.

Return Value

ISControl

Example

Display some information about the parent control of the embedded form.

sub main()
  Dim aParentControl
  Dim aControlInfo

  Set aParentControl = Form.Parent
  if not aParentControl is nothing then
    aControlInfo =_
      "PARENT CONTROL: " & vbNewLine &_
      "Short Name: " & aParentControl.ShortName & vbNewLine &_
      "Type Name: " & aParentControl.TypeName
  else
    aControlInfo = "No Parent Control"
  end if
  Profile.MsgBox(aControlInfo)
end sub
Note: This macro should be executed in any event handler of the form control.

In Profile Client v8 on User Interface Parent cannot be found.

Version information

Added in v7.8.0