7.4

Table Of Contents
Code Sample Example
This example prints the string Cheers’ ten times, one underneath the other, with a dashed line above and below the ten
instances.
Example
show('---------------')
crlf(0.16)
&count := 1
repeat
&count := &count + 1
show('Cheers')
crlf(0.16)
until(&count = 10)
show('---------------')
crlf(0.16)
ResourceType (function)
Returns the type of a resource. Recall that resources are either images or attachments.
Syntax
resourcetype( name ) integer value
Argument
name
String value that specifies the name of the resource.
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.
©2010 Objectif Lune Inc - 321 -