|
![]() |
![]() |
version 2003
PA_Tokenize (toTokenize; len; tokens) → long
Parameter | Type | Description | |
toTokenize | char * | → | Line of code to be tokenized |
len | long | → | Length of toTokenize |
tokens | char * | ← | Tokens of toTokenize, or 0 to read the tokens size |
Function result | long | ← | Length of tokens (0 if an error occured) |
Description
The routine
PA_Tokenize
allows the 4D plug-in to tokenize any 4th Dimension statement or expression.
PA_Tokenize
allows the 4D plug-in to tokenize only one line of code.
toTokenize
cannot contain several lines, such as a "Case of" or a "For" block. If you need to tokenize several lines of 4th Dimension code, write the code as a 4th Dimension global method or function, then tokenize a call to this method or function.