This function returns the parent form of the specified memo control.
object.GetParentForm(
[aFormTypeName])
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISMemo 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 memo control.
sub main()
Dim aMemo
Dim aMemoInfo
Dim aForm
Set aMemo = Form.Controls_("memComment")
set aForm = aMemo.GetParentForm("TIVisualForm")
aMemoInfo = "Form: " & aForm.ShortName & vbNewLine & vbNewLine
do while not aMemo is nothing
aMemoInfo = aMemoInfo &_
"ShortName: " & aMemo.ShortName & vbNewLine &_
"TypeName: " & aMemo.TypeName & vbNewLine &_
"---------" & vbNewLine
set aMemo = aMemo.Parent
loop
Profile.MsgBox(aMemoInfo)
end sub
In Profile Client v8 on User Interface Parent Form can be found in
.