7.5

Table Of Contents
StringReplace (function)
Replaces all occurrences of a pattern within a string, with another pattern.
Syntax
stringreplace( string, old, new) string
Arguments
string
String in which you want to replace a pattern.
old
String value that defines the pattern you want to replace.
new
String value that represents the replacement pattern.
Code Sample Example
This example replaces the dollar currency symbol with the pound currency symbol.
Example
stringreplace('1,000.00$','$','£')
StringWidth (function)
Returns the physical display width, in inches, of a string.
Syntax
stringwidth( string ) measure value
Argument
string
String value whose width is returned.
Code Sample Example
This example draws a tight box around a variable length data selection.
Example
margin(0,0)
%Define the data. This could be a data selection.
define(&data,string,'This is a sample string')
©2010 Objectif Lune Inc - 364 -