7.6

Table Of Contents
Argument
value
Measure value specifying the angle whose sine is returned.
Code Sample Example
This example draws a somewhat sinusoidal graph.
Example
moveto(0,0)
define(&i,integer,0)
for(&i,1,10,360)
lineto(cos(inttofloat((&i)/ 4)),sin(inttofloat(&i)))
endfor()
closepath()
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)
©2010 Objectif Lune Inc - 536 -