|
![]() |
![]() |
version 2003
PA_DetokenizeInTEHandle (tokens; len) → PA_Handle
Parameter | Type | Description | |
tokens | char * | → | Tokens to be detokenized |
len | long | → | Length of theTokens |
Function result | PA_Handle | ← | The TEHandle to the detokenized text |
Description
The routine
PA_DetokenizeInTEHandle
allows the 4D plug-in to retrieve the text of the 4D statement or expression corresponding to the tokenized 4D formula that has been passed.
Before the call, pass the tokenized 4D statement or expression in
Tokens
(which the 4D plug-in obtains using the
PA_Tokenize
) and its length in
len
. After the call, the 4D plug-in receives a TEHandle (a handle to a Text Edit record and
not
a CharsHandle). The
hText
field of the Text Edit record points to the detokenized text.
NOTE
As the
TEHandle
structure is specific to MacOS calls, this routine is useful only when compiling for MacOS or Windows using Mac2Win. If the plug-in is compiled for Windows without Mac2Win, the handle is still a "valid" Mac2Win Handle, but it should not be used in this case.
To detokenize in a "regular" text, use
PA_Detokenize
.
IMPORTANT NOTE
It is the plug in's responsibility to dispose of the
TEHandle
when it is no longer needed.
PA_DetokenizeInTEHandle
benefits