This function returns the parent form of the specified edit control.
object.GetParentForm(
[aFormTypeName])
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISEdit interface |
|
aFormTypeName |
Optional | string |
The name of the form type |
Display the short name of the form for the control and some information of all parent controls in the hierarchical tree starting from the specified edit control.
sub main()
Dim aEdit
Dim aEditInfo
Dim aForm
Set aEdit = Form.Controls_("edtInform")
set aForm = aEdit.GetParentForm("TIVisualForm")
aEditInfo = "Form: " & aForm.ShortName & vbNewLine & vbNewLine
do while not aEdit is nothing
aEditInfo = aEditInfo &_
"ShortName: " & aEdit.ShortName & vbNewLine &_
"TypeName: " & aEdit.TypeName & vbNewLine &_
"---------" & vbNewLine
set aEdit = aEdit.Parent
loop
Profile.MsgBox(aEditInfo)
end sub
In Profile Client v8 on User Interface Parent Form can be found in
.