ISMemo.Top

Description

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

Syntax

object.Top

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

Return Value

int

Example

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

Dim aMemo
Dim aMemoInfo

Set aMemo = Form.Controls_("memComment")

aMemoInfo =_
  "ShortName: " & aMemo.ShortName & vbNewLine &_
  "TypeName: " & aMemo.TypeName & vbNewLine &_ 
  "Width: " & aMemo.Width & vbNewLine &_
  "Height: " & aMemo.Height & vbNewLine &_
  "Hint: " & aMemo.Hint & vbNewLine &_
  "Left: " & aMemo.Left & vbNewLine &_
  "Top: " & aMemo.Top & vbNewLine &_
  "Tag: " & aMemo.Tag
  
Profile.MsgBox(aMemoInfo)  
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 memo control in the controls tree > Top.

Version information

Added in v7.8.0