7.5

Table Of Contents
Integer value specifying the line number to return. If no <>index<> paramter is specified, the default value is 0.
Code Sample Example
This example illustrates how to assign data from the current data page to a string variable by using the regionline() command.
Example
define(&invnum, string, regionline(2.1807,0.3018,3.8843,0.9054, 0))
Related topics:
l "Region (function)" (page 502)
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.
Example
if( eq(resourcetype( ‘employee’ ), 1))
&resolution := 200
elseif
&resolution := 75
endif
©2010 Objectif Lune Inc - 504 -