7.4

Table Of Contents
Argument
image
String value specifying the path of the file containing the image.
Pos (function)
Returns the starting position of a specified string within another string, or 0 if the specified string cannot be found.
Syntax
pos( string1, string2 ) integer value
Arguments
string1
String value to search for.
string2
String value in which to search.
Code Sample Example
This example uses POS to look for a word in a data selection.
Example
define(&s,string,@(1,10,40)) %Initialize var. with data
if(pos('INVOICE',&s)>0) %Look for the word INVOICE
show('Invoice') %if found, display some text
elseif()
%Otherwise,display something else
show('Sales order')
endif()
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.
©2010 Objectif Lune Inc - 526 -