User Guide

parseString() 439
You would use it by passing in the values you wanted to add:
put AddNumbers(3, 4, 5, 6)
-- 18
put AddNumbers(5, 5)
-- 10
See also
getAt, param(), paramCount(), return (keyword)
paramCount()
Usage
the paramCount
Description
Function; indicates the number of parameters sent to the current handler.
Parameters
None.
Example
This statement sets the variable counter to the number of parameters that were sent to the
current handler:
set counter = the paramCount
parseString()
Usage
parserObject.parseString(stringToParse)
Description
Function; used to parse an XML document that is already fully available to the Director movie.
The first parameter is the variable containing the parser object. The return value is
<VOID> if the
operation succeeds, or an error code number string if it fails. Failure is usually due to a problem
with the XML syntax or structure. Once the operation is complete, the parser object contains the
parsed XML data.
To parse XML at a URL, use
parseURL().
Parameters
stringToParse
Required. Specifies the string of XML data to parse.
Example
This statement parses the XML data in the text cast member XMLtext. Once the operation is
complete, the variable gParserObject will contain the parsed XML data.
errorCode = gParserObject.parseString(member("XMLtext"))
See also
getError() (XML), parseURL()