6.0

Table Of Contents
126
Language Reference
4
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,40,10)) %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()
&PrinterMode (system variable)
Returns the current output mode for the document. This allows you to test for a specific value and react
accordingly.
Syntax
&printermode integer value