User`s guide

xl Contents
Find Field Length—Function 32
This function determines the length of a specified field in the Host session presentation space. You can
use Find Field Length for either protected or unprotected fields but only in a field-formatted host
presentation space.
Prerequisite Functions
Connect Presentation Space (function 1).
WinHLLAPI(FINDFIELDLENGTH,lpbyString,lpwLength,
lpwReturnnCode)
Parameter Description
Data String A 2-byte string that must be one of the following:
[space][space] This (current) field.
T[space] This (current) field.
P[space] Previous field (protected or
unprotected).
N[space] Next field (protected or
unprotected).
NP Next Protected field.
NU Next Unprotected field.
PP Previous Protected field.
PU Previous Unprotected field.
Data Length NA (length of 2 is implied).
PS Position The position in the Host session presentation space
where the find starts.
Data Length Description
0 If Return Code = 28, the field length is zero. If Return
Code = 24, the Host session presentation space is
unformatted.
>0 Length of the specified field. This value includes all
characters from the beginning of the specified field up to
the character preceding the next attribute byte.
Function Call
Call Parameters
Return Parameters