TerGetField
Retrieve the text for a field name or field data.
long TerGetField(hWnd, LineNo, ColNo, type, text)
long TerGetFieldU(hWnd, LineNo, ColNo, type, UnicodeText)
HWND hWnd; | The handle of the window to be accessed |
long LineNo; | The line number to examine. Set to -1 to use the current line and current column number. |
int ColNo; | The text column number to examine. |
int type; | Set to one of the following constants: |
FIELD_NAME: | Retrieve the field name. |
FIELD_DATA: | Retrieve the field data. |
LPBYTE text; | Pointer to receive the text part for the field name or field data. Set this field to NULL if you wish only to get the text length. This parameter is used by the TerGetField function only. |
LPWORD UnicodeText; | Pointer to receive the unicode text part for the field name or field data. Set this field to NULL if you wish only to get the text length. This parameter is used by the TerGetFieldU function only. |
Return Value: This function returns the length of the retrieved text.