thismaplet
Description
Examples
Each time a procedure is evaluated by using an Evaluate action element, the global variable thismaplet is assigned the handle of the Maplet application that called the procedure. The handle is an identifier for the Maplet application. After evaluation, the variable is reset to its previous value.
The variable, thismaplet, can be copied and stored so that an Evaluate action element can refer to itself or another running Maplet application by assigning it to another variable.
MyProc := proc() global x; x := thismaplet; "Okay"; end proc;
with⁡MapletsElements:
maplet≔Maplet⁡TextFieldTF1⁡,Button⁡Run MyProc,Evaluate⁡TF1=MyProc:
MapletsDisplay⁡maplet
See Also
Maplets[Display]
Maplets[Elements][Button]
Maplets[Elements][Evaluate]
Maplets[Elements][TextField]
Maplets[Tools]
Overview of Maplet Applications
Download Help Document