7.5

Table Of Contents
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')
set(&data,trimright(&data))
%Store the length
define(&dw,measure,stringwidth(&data))
moveto(1,1)
%Display the string, then draw a box around it.
show(&data)
rectstroke(1,0.86,&dw,0.2)
©2010 Objectif Lune Inc - 506 -