REXX Tips & Tricks, Version 2.80


Inf-HTML [About][Toc][Index] 0.9b (c) 1995 Peter Childs


Initialization of variables


You can use the PARSE instruction to init more than one variable in one 
statement. 
Example: 

 
/* init more than one variable in one statement                       */

                    /* init the variables varA, varB, varC and VarD   */
                    /* with 0                                         */
  parse value 0 0 0 0  with varA varB varC varD

                    /* init the variables varE and varG with 1 and    */
                    /* the variables varF and VarH with 0             */
  parse value 1 0 1 0  with varE varF varG varH


                    /* init all global variables with ""        v2.30 */
  exposeList = "Global. Menu. ansi. ascii. help. msgStr."    ,
               "!curMenu !ListMenu !HistoryMenu !MacroMenu"  ,
               "!MainMenu !curMenuEntry !curMenuAction"      ,
               "!thisMenu !NextMenu !BackLevel"

                    /* use interpret to init the variables      v2.30 */
  interpret "parse value '' with " exposeList


  

Inf-HTML End Run - Successful