Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FreshWin (c) Fresh Technologies - <b>update...ifarr pseudo-function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  UPDATE...IFARR                                            Pseudo-Function
 Purpose..: Update an item only if another is an array
-------------------------------------------------------------------------------
 Syntax...: UPDATE <aAr1> IFARR <aAr2> [ TO <aAr3> ]

 Arguments: <aAr1>    = a variable to be updated.

            <aAr2>    = an item which is checked to ensure
                        it is an array. Then it is assigned to <aAR1>.
                        If not, then <aAr1> is set to NIL.

            [<aAr3>]  = if used, then it, rather than <aAr2>,
                        is assigned to <aAr1>.

 Remark...: The command is a #translate function.

               #command UPDATE <v1> IFARR <v2> ;
                     => ;
                  iif( valtype( <v2> ) == "A", <v1> := <v2>, NIL )

               #command UPDATE <v1> IFARR <v2> TO <v3> ;
                     => ;
                  iif( valtype( <v2> ) == "A", <v1> := <v3>, NIL )

            You must have a #include "FW_AIDS.CH" statement in your
            source code file to use the command.

 Source...: FW_AIDS.CH
-------------------------------------------------------------------------------
 Example..: To show the command, the window array is to
            be updated if aWinXT is an array.
            ...
            UPDATE  aWin IFARR aWinXT TO aWinPik


See Also:

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson