7.4

Table Of Contents
translate(0.2,0.2) %Separate slices
setfillcolor([100,100,0,0]) %Set fill colour to blue
pie(1.5,1.5,1,290,420) %Create second slice
strokeandfill() %Draw second slice
PixelHeight (function)
Returns the height, in pixels, of the specified image.
Syntax
pixelheight( image ) integer
Argument
image
String value specifying the path of the file containing the image.
PixelWidth (function)
Returns the width, in pixels, of the specified image.
Syntax
pixelwidth( image ) integer
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.
©2010 Objectif Lune Inc - 314 -