7.4

Table Of Contents
Return Values
Return value: Indicates:
0 The resource does not exist or could not be found.
1 A color bitmap.
2 A monochrome bitmap.
3 A grayscale bitmap.
4 An Encapsulated PostScript (EPS) image.
5 A PostScript file.
6 A Portable Document Format (PDF) file.
Code Sample Example
This example sets the variable &resolution to 200 DPI if the resource is a color bitmap, and to 75 DPI if it is not.
Example
if( eq(resourcetype( ‘employee’ ), 1))
&resolution := 200
elseif
&resolution := 75
endif
StrToInt (function)
Converts a string into an integer value.
Syntax
strtoint( string ) integer value
Argument
string
String value to convert.
Code Sample Example
This example reads a column of 6 values then converts the values to integers and then adds the integer to the &total variable.
The total value is subsequently converted back to a string and the result is printed.
Example
define(&total,integer,0)
define(&x,integer,0)
for(&x,1,1,6)
©2010 Objectif Lune Inc - 527 -