thismaplet - Maple Help

thismaplet

Description

 • 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.

Examples

 > MyProc := proc() global x; x := thismaplet; "Okay"; end proc;
 > $\mathrm{with}\left(\mathrm{Maplets}\left[\mathrm{Elements}\right]\right):$
 > $\mathrm{maplet}≔\mathrm{Maplet}\left(\left[\left[\mathrm{TextField}\left['\mathrm{TF1}'\right]\left(\right)\right],\left[\mathrm{Button}\left("Run MyProc",\mathrm{Evaluate}\left('\mathrm{TF1}'="MyProc"\right)\right)\right]\right]\right):$
 > $\mathrm{Maplets}\left[\mathrm{Display}\right]\left(\mathrm{maplet}\right)$