Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Protection Plus for Clipper - <u>pp_npdate()</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PP_NPDATE()
Return next payment date
------------------------------------------------------------------------------

Syntax
  PP_NPDATE( <dDate>, <nDay> )  .  dDate

Arguments
  <dDate> is a date in the current month.
  <nDay> is the day of next month that payment is due.

Returns
  Date of next payment due.

Description
  The <nDay>th day in the month after the month of <dDate> is
  returned.  If this day happens to be on a weekend, the next
  Monday date is returned.  This function is used in conjunction
  with pp_nexptype().  Together with the user-code, your client
  can call you up after you receive his monthly check, type in the
  appropriate user-code and have his product work until next
  month.

Example

*Set next expiration type to <P>ayments and make it expire on
*the next payment date around the 20th of next month

if pp_nexptype("P",pp_npdate(date(),20))
    @ 2,0 say "Application payment expire date extended to"+;
        dtoc(pp_npdate(date(),20))
endif

See Also: PP_NEXPTYPE() PP_UCODE()

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