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...ifchar pseudo-function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  UPDATE...IFCHAR                                           Pseudo-Function
 Purpose..: Update an item only if another is a character
-------------------------------------------------------------------------------
 Syntax...: UPDATE <cCh1> IFCHAR <cCh2> [ TO <cCh3> ]

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

            <cCh2>    = an item which is checked to ensure
                        it is acharacter data type. Then it is
                        assigned to <cCh1>. If not, then
                        <cCh1> is set to NIL.

            [<cCh3>]  = if used, then it, rather than <cCh2>,
                        is assigned to <cCh1>.

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

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

               #command UPDATE <v1> IFCHAR <v2> TO <v3> ;
                     => ;
                  iif( valtype( <v2> ) == "C", <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 frame is to
            be updated if cPicked is a character type.
            ...
            UPDATE  cFrame IFCHAR cPicked TO "+-+|+-+| "


See Also:

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