where expression is a variable that represents a HostField Object
Remarks
Replaces characters up to the field length or the string length, whichever is lesser. If the string is shorter than the field, the remaining characters are padded with Unicode null.
Example
This example finds the first field on the screen and prints its row, column, length, and text.
Sub FindAndPrintHostFieldValue()
Dim hostfieldvar As HostField
Set hostfieldvar = ThisIbmScreen.FindField1(1, 1, FindOption_Forward)
Debug.Print hostfieldvar.toString
End Sub