User`s guide

xlii Contents
Find Field Position—Function 31
This function determines the starting position of a field in the Host session presentation space. You can
use Find Field Position for either protected or unprotected fields but only in a field-formatted host
presentation space.
Prerequisite Functions
Connect Presentation Space (function 1).
WinHLLAPI(FINDFIELDPOSITION,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 Starting position of the requested field.
Function Call
Call Parameters
Return Parameters