HK Components

================================================================================

HK_date

DATE_getMMDD

returns a string containng he month and day of a given date. This s extremely useful for gahtring lists to, for example, create virthday lists for specific months

Call

mmdd:=DATE_getMMDD(date)

Parameters

$1 -> date the date to get the month/day of
$0 <- text the month and day of the date, padded to 2 digits each

Example

create empty set([PEOPLE];"birthdaylist")
$t_current:=string(month of(current date);"00")
For ($i;1;records in selection([PEOPLE]))
   if(DATE_getMMDD([PEOPLE]birthday)=$t_current+"@")
      ADD TO SET([PEOPLE];"birthdaylist")
   end if
   NEXT RECORD([PEOPLE])
end for
USE SET("birthdaylist")

OK, you could do this by comparing month of([PEOPLE]birthday), but think of storing this information in a field, then you could search for it without having to loop

--------------------------------------------------------------------------------

Pricing

All current components are donationware in their compiled form, please use the donate button below to give what you think it's worth via paypal.

You can buy the sourcecode to the components. AC_Basics is free, but the source for all other components is 100 U$/€ via PayPal. You will receive the password to the archive contained in the component as soon as I receive the email from paypal confirming payment. Please make sure to call the payment button from the webpage of the desired component, so I know what you want to pay for. I can send an invoice by mail if you so require, EU corporate entities may provide a VAT ID in the message of their PayPal payments so I can deduct the VAT.

Thanks a lot

========================

Current version

0.9 - 2009.02.27
========================