Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Grumpfish Library 3.2 - <b>timeword()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
TIMEWORD()

    This function may seem trivial, but believe it or not, you might
    find use for it someday.  TIMEWORD() simply returns a word
    describing the time of day (based on the system clock).  It is not
    exactly a cure for cancer, but it is a nice touch.  Syntax is:

    TIMEWORD()

    There are no parameters.

    Return Value

    TIMEWORD() returns a character string which relates to the time as
    follows:

    12:00 am - 11:59 am    "Morning"
    12:00 pm -  5:59 pm    "Afternoon"
     6:00 pm - 11:59 pm    "Evening"

    Of course, since you have the source code, you could change this to
    suit your taste. You could even reverse their order to throw people
    off!

    Sample Usage:

    @ 01,01 say 'Good ' + TIMEWORD() + '!!'

    Clipper 5.0 Notes

    This is now a preprocessor in-line function, and must be referred
    to in upper-case.  "Timeword()" and "TimeWord()" won't cut it.
    You also must put the following line at the top of any .PRG
    referring to TIMEWORD():

    #include "grump.ch"

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