User Guide
A closer look on certain functions:
• Pi. Returns the value of the Pi number.
• Sin / Cos / Tan. Return the value of the sine, cosine and tangent of an angle. The angle
must be expressed in degrees (0-360).
• Sqr. Returns the Square root of a positive number.
• Ln, Log. Return the logarithm of a number.
• Exp. Returns the exponential of a number.
• Left$. String function, returns the left part of a string. For example Left$( “Multimedia”, 3)
will return “Mul”.
• Mid$. String function, returns a extract from the middle of a string. This function asks for two
parameters, the first is the start position in the string, the second is the number of characters
to return. Example, Mid$( “Multimedia”, 4, 4) will return “time”.
• Right$. String function, returns the right of a string, for example Right$( “Multimedia”, 3 )
will return “dia”.
• Len. Returns the length of string, example Len( “Multimedia” ) will return 10.
• Val. Converts a string into a number, example Val( “1000” ) will return the number 1000.
• Str$. The contrary of the previous function, converts a number into a string. Example, Str$
( 1000 ) returns the string “1000”.
• Hex$. Converts a number into a string containing the hexadecimal value of the number.
Example Hex$( 256 ) returns “100”.
• Bin$. Converts a number into a string containing the binary value of the number. Example
Bin$( 16 ) returns “10000”.
Retrieving data from objects
This very important function of the expression
editor opens multiple possibilities of
programming. A click on the button “Retrieve
data from objects” opens a dialog box that
presents you with the objects of the application.
You should click with the right mouse
button on one the objects to open the
function pop-up menu of the object…
Once the menu option is chosen, the
box closes itself and the token of the
function is inserted in the edit zone of
the expression editor. You might have
to enter one or more parameters for
the function: the parameter is automatically
selected.
A click on the “Next” button will select the next
parameter for entry.
59