Back Previous Next


Linguist basic package - set

Syntax:

   set {variable}
   set {module} to parent/{string value}
   set the file path to {path}
   set the name of {event source} to {name}
   set ready
   set prompt to screen/console

Keyword handler:

   net.eclecity.linguist.basic.keyword.BasicKSet.class

Runtime handler(s):

   net.eclecity.linguist.basic.handler.BasicHPut.class
   net.eclecity.linguist.basic.handler.BasicHSetEventName.class
   net.eclecity.linguist.basic.handler.BasicHSetFilePath.class
   net.eclecity.linguist.basic.handler.BasicHSetReady.class
   net.eclecity.linguist.basic.handler.BasicHSetPrompt.class
   net.eclecity.linguist.basic.handler.BasicHSetModule.class

Function:

The first form sets a variable to a logical true (value is 1).

The second form assigns a module variable. This can either be the parent of the module doing the assignment or any other module, identified by its name. In the latter case the system will attempt to locate the named module.

The third form sets the starting directory for a file dialog - see open.

The fourth form sets the name of an event source so it can be identified when an event occurs. Most components in the graphics package are event sources. The corresponding value is the event name, which returns the assigned name.

The fifth form is needed when the module is being run from another module. Until set ready is given the parent will be blocked and cannot continue.

The final form enables you direct the output of prompt statements either to the console (by default) or to a pop-up window. If the latter, the thread will block until the user acknowledges the prompt.

Example(s):

   set Flag
   set Module2 to parent
   set Module2 to "Module2"
   set the file path to "D:"
   set prompt to screen


Back Previous Next