7.4

Table Of Contents
Argument
string
String value to trim.
Code Sample Example
"TrimLeft (function)" (page 549)
UpperCase (function)
Convert a string to all upper case characters.
Syntax
uppercase( string ) string
Argument
string
String value you want to convert to upper case. The string may be a mix of upper and lower case characters.
Code Sample Example
This example illustrates uppercase().
Example
&month := uppercase( @(1,60,70) )
xmlCount()
Counts the number of children for a specific element, according to standard XPath syntax. The return value is an integer and
always returns 0 if the specified XPath is invalid or if no value is found. The XPath is always relative to the XML root path.
Syntax
xmlCount(path:string) integer value
Arguments
path
The XMLPath of the value you want to retrieve. The path must correspond to a single entry in the XML, thus is not a complete
XPath with regular expressions and variables.
Code Sample
The following gets the number of items in an invoice, loops through each item and displays the item's description with show().
define(&i, integer, 0)
define(&currentItemDescription, string, '')
©2010 Objectif Lune Inc - 373 -