Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Foxlib v1.0 - <b>dayweek</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DAYWEEK

Syntax:                 DAYWEEK

Use:                    To determine the day of the week.

Parameters:             DAY

Returns:                The first character in the sending parameter will
                        have the day of the week (0=Sunday, 1=Monday, etc.).

                        If you did not pass the parameter correctly (e.g.
                        FOXLIB = "ZAY"), your sending parameter will be
                        unchanged.

Example:                . load c:\FOXLIB\dayweek
                        . FOXLIB = "DAY"
                        . call dayweek with FOXLIB
                        . ?asc(substr(FOXLIB,1,1))
                        3
                        . rele modu dayweek

                        From this example, day of the week is Wednesday.
                        Below is a list of all possible outcomes:

                        0 = Sunday
                        1 = Monday
                        2 = Tuesday
                        3 = Wednesday
                        4 = Thursday
                        5 = Friday
                        6 = Saturday

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