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...ifdate pseudo-function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  UPDATE...IFDATE                                           Pseudo-Function
 Purpose..: Update an item only if another is a dateacter
-------------------------------------------------------------------------------
 Syntax...: UPDATE <dDt1> IFDATE <dDt2> [ TO <dDt3> ]

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

            <dDt2>    = an item which is checked to ensure
                        it is a date data type. Then it is
                        assigned to <dDt1>. If not, then
                        <dDt1> is set to NIL.

            [<dDt3>]  = if used, then it, rather than <dDt2>,
                        is assigned to <dDt1>.

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

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

               #command UPDATE <v1> IFDATE <v2> TO <v3> ;
                     => ;
                  iif( valtype( <v2> ) == "D", <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 dToday is a date type.
            ...
            UPDATE  dWhen IFDATE dToday TO 09/04/91


See Also:

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