6.0

Table Of Contents
156
Language Reference
4
StringWidthUTF8 (function)
Returns the length, in inches, of the string as it would be displayed on a page, using the current font. Bear
in mind that the combination of many bytes sometimes results in a single glyph and that text orientation
can also affect the number of glyphs displayed.
Syntax
stringwidthutf8(text, mode)
Arguments
text — UTF8 text string to be measured.
mode — String specifying how the contextual analysis is to be performed. Possible values are 'normal',
'reverse', and 'none' (for no contextual analysis).
Strip (function)
Removes all occurrences of a string within another string.
Syntax
strip( string1, string2 ) string value
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))
Stroke (procedure)
Outlines the current shape using the pen colour and width specified with the setstrokecolor and
setlinewidth command. The shape is not filled. To fill and outline the shape, use strokeandfill instead. If
you only want to fill the shape, use fill.