Find Field Length (32) |
Top Previous Next |
The Find Field Length function returns the length of a target field in the connected presentation space. This function can be used to find either protected or unprotected fields, but only in a field-formatted host presentation space.
This function returns the number of characters contained in the field identified using the call PS position parameter. This includes all characters from the beginning of the target field up to the character preceding the next attribute byte.
Prerequisite Calls
Connect Presentation Space (1)
Call Parameters
Note: PS Position: Identifies the field within the host presentation space at which to start the Find. It can be the PS position of any byte within the field in which you desire the Find to start.
The calling 2-character data string can contain:
Note: [RB] represents a required blank.
Return Parameters
This function returns a length and a return code.
Length
The following lengths are valid:
Return Code
The following codes are defined:
Remarks
Except when [RB][RB] or T [RB] is used as the calling data string, if the field found is the same as the field from which the Find started, a return code of 24 is returned. |