ISEdit.Top

Description

The vertical offset of the specified edit control from the top left corner of the form.

Syntax

object.Top

Part Attribute Type Description
object Required
The object always implements the ISEdit interface

Return Value

int

Example

Display some information about the specified edit control, including its vertical offset from the top left corner of the form.

Dim aEdit
Dim aEditInfo

Set aEdit = Form.Controls_("edtInform")

aEditInfo =_
  "Width: " & aEdit.Width & vbNewLine &_
  "Height: " & aEdit.Height & vbNewLine &_
  "Hint: " & aEdit.Hint & vbNewLine &_
  "Left: " & aEdit.Left & vbNewLine &_
  "Top: " & aEdit.Top & vbNewLine &_
  "Tag: " & aEdit.Tag & vbNewLine &_
  "ShortName: " & aEdit.ShortName & vbNewLine &_
  "TypeName: " & aEdit.TypeName                
  
Profile.MsgBox(aEditInfo) 
Note: This macro should be executed in any event handler of the form control.

In Profile Client v8 on User Interface Top can be found in Maintain > Templates > Health Record Collection Templates > Open the selected form template > Open form editor > Object Inspector > Select the edit control in the controls tree > Top.

Version information

Added in v7.8.0