ISProfileForm.ControlText

Description

This function returns the text property from the specified control of the form.

Syntax

object.ControlText(aName)

Part Attribute Type Description
object Required
The object always implements the ISProfileForm interface
aName In, Required
string
The name of the control

Return Value

string

Returns the text property from the specified control of the form.

Example

Display some information about the form, including the text property from the specified form control.

Dim aForm
Dim aFormInfo

Set aForm = Profile.Form
aFormInfo =_
  "Short Name: " & aForm.ShortName & vbNewLine &_
  "TypeName: " & aForm.TypeName & vbNewLine &_   
  "ControlText: " & aForm.ControlText ("edtPatientName") 
    
Profile.MsgBox(aFormInfo)  
Note: This macro should be executed in any event handler of the form control.

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

Version information

Added in v7.8.0