CalcIt Commands


This command creates an alias for existing Form variable through its FormID (AFormID). The alias has to be declared in the same code that created the original variable. The use of the alias is mostly intended for use inside EventProc routines that handle events for Forms. Is valid only inside local functions and Form alias cannot declared as global variables. It is used in conjunction with SET command:

set frm=FORM(FormDefID,100);

function EventProc(FormID, ControlID, Action, &Data);
 set AliasFrm=FORMID(100);

In the above example the FormID that named the initialization of frm variable is 100.

This command is the only mean to handle Form variables inside EventProc if they are declared locally in local functions.

Go Back