ISImage.Parent

Description

The parent control of the specified image control.

Syntax

object.Parent

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

Return Value

ISControl

Example

Display the short name and type name of the parent control associated with the specified image control.

Dim aImage
Dim aParentControl
Dim aImageInfo

Set aImage = Form.Controls_("Image1")
set aParentControl = aImage.Parent
aImageInfo = "Parent Info: " & vbNewLine &_
  "ShortName: " & aParentControl.ShortName & vbNewLine &_
  "TypeName: " & aParentControl.TypeName
 
Profile.MsgBox(aImageInfo)  
Note: This macro should be executed in any event handler of the form control.

In Profile Client v8 on User Interface Parent can be found in Maintain > Templates > Health Record Collection Templates > Open the selected form template > Open form editor > Object Inspector.

Version information

Added in v7.8.0