Please enable JavaScript to view this site.

thinBasic Help Manual

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

Description

 

Evaluate a string expression to be interpreted at run-time as a thinBasic numeric expression.

 

Syntax

 

n = Evaluate(StringExpresion [, ActivateRuntimeErrors])

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

StringExpresion

String

No

Text containing a valid thinBasic string expression to be evaluated at run-time

ActivateRuntimeErrors

Number

Yes

By default $() will ignore run-time errors while interpreting interpolated expressions.

 

Setting this optional parameter to %TRUE will generate a parsing error if one interpolated expression will generate e run-time error.

 

Remarks

 

Evaluate$, $

 

Restrictions

 

String expression must be a valid thinBasic expression in the running context and scope.

It can refer to local or global variables.

It can contains string and numeric expressions

It can contains any valid module functions active in current script.

 

See also

 

Examples

 

 

uses "console"
 
Single  x = 10
Single  y = 5
 
printl "Value is: " + Evaluate("x^3 - 3*x + 2")
 
WaitKey

 

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software