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

 

Define a link between a thinBasic script extended variable and an Eval_... formula variable

This function automatically will create VariableName in Eval module and will link it to an extended variable of thinBasic script.

 

Syntax

 

n = Eval_LinkExt(VariableName, PointerToAnEXTvar, InitialValue)

 

Returns

 

Number, always zero

 

Parameters

 

Name

Type

Optional

Meaning

VariableName

String

No

The name of the variable you want create

PointerToAnEXTvar

Number

No

A pointer to an extended variable present in thinBasic script

InitValue

Number

No

An initial value to assign to variable

 

Remarks

 

Use VARPTR to pass pointer to extended variable in script.

 

Restrictions

 

See also

 

Examples

 

USES "EVAL"

 

Dim result    As EXT

Dim MyScriptX As EXT

 

'--Creates an Eval internal variable X and link with script variable MyScriptX

EVAL_LinkExt("X"VARPTR(MyScriptX), 10)

 

result = EVAL_math ( "x^2"'---this return 100

 

MSGBOX 0, Result

 

 

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