7.5

Table Of Contents
rlineto(0,&height)
rlineto(neg(&width),0)
rlineto(0,neg(&height))
closepath()
stroke()
moveto(&width/2,&height/2)
SetStyleExt(&Style1,12.0000,0,[100],100)
showUTF8right(maputf8(@(2,15,35), &MyArabEncoding, False),'normal')
Mid (function)
Extracts a specified number of characters from a string, starting at a specific position.
Syntax
mid( string, start, length ) string value
Arguments
string
String value from which to extract characters.
start
Integer value specifying where the first character to extract is located.
length
Integer value specifying how many characters to extract, starting from number onwards.
Code Sample Example
This example extracts a bracket-delimited word from a sentence.
Example
define(&data,string,'This is a [bracketed] word')
define(&i,integer, pos('[', &data))
%Find the '[' character
define(&j,integer, pos(']', &data))
%Find the ']' character
if((&i>0) and (&j>&i))
%If both were found
show(mid(&data,&i+1,(&j-&i)-1))
%Print the word
©2010 Objectif Lune Inc - 498 -