Parameter | Description |
---|---|
Data String | String to search for. |
Data Length | Length of the search string. NA if session option EOT is specified. |
PS Position | Position in the Host session presentation space of the field to search. If session options SRCHFROM and SRCHFRWD are set, indicates position to search from. If session options SRCHFROM and SRCHBKWD are set, indicates position to search to. If session option SRCHALL is set, can be the position of any byte in the field to search. |
Parameter | Description |
---|---|
0 | The search string was not found. |
>0 | The search string was found. Value is the Host session presentation space position where the string begins. |
Code | Description |
---|---|
WHLLOK | The search string was found. |
WHLLNOTCONNECTED | Your Windows HLLAPI application is currently not connected to a session. |
WHLLPARAMETERERROR | Data String was length zero or greater than the Host session presentation space size. |
WHLLPOSITIONERROR | Invalid value specified for PS Position. |
WHLLSYSERROR | The function failed due to a system error. |
WHLLNOFIELD | The search string was not found, or the Host session presentation space is unformatted. |