7.6

Table Of Contents
Arguments
string1
String value to be removed from string2.
string2
String value to change.
Code Sample Example
This example strips all dollar signs from a variable.
Example
define(&data,string,'$11.95')
show(strip('$',&data))
Sub (function)
Subtracts one expression from another. This is the functional equivalent of the - operator.
Syntax
sub( expression, expression2 ) integer, measure, currency value
Arguments
expression1, expression2
Integer, measure or currency values. Both expressions must be the same type. The returned value is set according to the type
of the parameters.
Code Sample Example
Example 1 and Example 2 illustrates both ways of subtracting numbers.
Example 1
show(inttostr(2-2))
Example 2
show(floattostr(sub(4.7,2.1)))
©2010 Objectif Lune Inc - 506 -