version 2003
PA_GetCurrentTEHandle PA_Handle
Parameter | Type | Description | ||||
This command does not require any parameters | ||||||
Function result | PA_Handle | Handle to the current edited text in a form |
Description
The routine PA_GetCurrentTEHandle returns a handle to the current TextEdit record of the edited text (where the cursor is), variable or field.
The returned PA_Handle is a regular "TEHandle", that can be used only under MacOS or Windows+Altura.
Example
Return the length of the current edited text.
short CurrentTextLength() { TEHandle te = (TEHandle) GetCurrentTEHandle(); if(te) return (*te)->teLength; }
See Also
No reference.
Error Handling
PA_GetLastError always returns eER_NoErr