Contents | Index | < Browse | Browse >

 TRANSLATION

 Translation is the the process whereby Gui4Cli will substitute the 
 contents of a variable for it's name, if the $ (dollar sign character) 
 is placed in front of the variable name.

 Example :
 > MyVar = "This is my variable"
 > Say $MyVar

 Here we put the string into the variable and then print the variable 
 contents. The output will be : 
 > This is my variable 

 Translation is a *very* important concept in Gui4Cli, and one which
 you *must* understand.

 Translation is done automatically by Gui4Cli on ALL arguments of all
 EVENT COMMANDS (be they numbers or strings), making it very flexible.

 You can, for example, say :
 > Update  $MyGui  $MyGadgetID  $MyNewValue

 and Gui4Cli will update the given gadget in the given GUI, to the
 given NewValue, according to whatever these variables contain.


 BTW : AmigaDOS also does this translation stuff, substituting the
       contents of an Environment (ENV:) variable, when ever a
       $ sign is found.