ISControl.Text

Description

The text of the specified control.

Syntax

object.Text

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

Return Value

string

Example

Display some information about the specified control, including its text.

Dim aControl
Dim aControlInfo

Set aControl = Form.Controls_("edtName")

aControlInfo =_
  "Caption: " & aControl.Caption & vbNewLine &_ 
  "ShortName: " & aControl.ShortName & vbNewLine &_
  "Text: " & aControl.Text 
  
Profile.MsgBox(aControlInfo)  
Note: This macro should be executed in any event handler of the form control.

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

Version information

Added in v7.8.0