Registering constants

<< Click to Display Table of Contents >>

Navigation:  Using Delphi classes and functions >

Registering constants

Constants can be registered for global usage (in any script) or for Scripter instance.

To register global constant use HtScriptGlobal instance for registration.

 

Example:

 

  HtScriptGlobal.RegisterConst('MaxInt', MaxInt);