7.6

Table Of Contents
define(&x,integer,1)
%Define loop variable
for(&x,1,1,10)
%Set up loop
show('Iteration ' + inttostr(&x) )
%Show text
crlf()
%Skip line
endfor()
Left (function)
Extracts the specified leftmost characters of a string.
Syntax
left( string, number ) string value
Arguments
string
String value from which to extract characters.
number
Integer value specifying how many characters to extract from the beginning of the string.
Code Sample Example
This example prints a string up to a certain position.
Example
define(&data,string,'This is a~sample string')
%Define string
define(&x,integer, pos('~', &data))
%Find tilde
%Print the string up to the tilde character, if found
if(&x>1)
show(left(&data,&x-1))
endif()
©2010 Objectif Lune Inc - 544 -