GetChildTerm

GetChildTerm 1:

Retrieves a child expression at a specific index.

Syntax

METHOD PROTECTED GetChildTerm : BOOL
VAR_INPUT
  stParent : POINTER TO ST_BA_StringToken;
  nIndex   : UINT;
END_VAR
VAR_OUTPUT
  stResult : POINTER TO ST_BA_StringTerm;
END_VAR

GetChildTerm 2: Inputs

Name

Type

Description

stParent

POINTER TO ST_BA_StringToken

Pointer to the parent token.

nIndex

UINT

Index of the child term being searched for (1-based).

GetChildTerm 3: Outputs

Name

Type

Description

stResult

POINTER TO ST_BA_StringTerm

A pointer to the found child expression, or 0 if an error occurs.