PA_GetCurrentTEHandle

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_GetCurrentTEHandle PA_Handle

ParameterTypeDescription
This command does not require any parameters
Function resultPA_HandleHandle 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


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next