GetChildToken

Retrieves a child token at a specific index.
Syntax
METHOD PROTECTED GetChildToken : BOOL
VAR_INPUT
stParent : POINTER TO ST_BA_StringTerm;
nIndex : UINT;
END_VAR
VAR_OUTPUT
stResult : POINTER TO ST_BA_StringToken;
END_VAR
Inputs
Name | Type | Description |
|---|---|---|
stParent | POINTER TO ST_BA_StringTerm | Pointer to the parent expression. |
nIndex | UINT | Index of the child token being searched for (1-based). |
Outputs
Name | Type | Description |
|---|---|---|
stResult | POINTER TO ST_BA_StringToken | A pointer to the child token found, or 0 if an error occurs. |