String

Returns the text of the field or sets the field's text. When setting the field's text, if the string specified is shorter than the length of the field, the rest of the field is cleared. If the string is longer than the field, the text is truncated. A subsequent call to this property will not reflect the changed text. To see the changed text, you must call the Refresh method of the Fields object to retrieve a new Field object.


Syntax

FlexFields(Index).String


Parameters


Index

Integer, input



Index of the field object.


Example

Sub Main()

'Assuming the first field is unprotected

Msgbox FlexFields(1).String

'Change the field’s text to "test"

FlexFields(1).String = "test"

FlexFields.Refresh

'Should display "text" in the first field

Msgbox FlexFields(1).String

End Sub