API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IDATECTL_SETDATE()

Brew Release
Brew MP 1.0.2
See Also
IDateCtl IDATECTL_GetDate
Description
This function assigns the specified date to the date control object.
Params
pIDateCtl
[]:
pointer to the IDateCtl interface object.
nYear
[]:
year [YYYY], for example, 2000.
nMonth
[]:
month [MM], for example, 12.
nDay
[]:
day [DD], for example, 31.
Interface
  • IDATECTL
Prototype
  •     boolean IDATECTL_SetDate
        (
          IDateCtl * pIDateCtl,
          unsigned int nYear,
          unsigned int nMonth,
          unsigned int nDay
        );
    
Return
  • TRUE: if successful. FALSE: if unsuccessful.
Side Effect
  • None.
Comments
Minimal error checking: Any day that is between 1 and 31 is valid and any month that is between 1 and 12 is valid. An input of 4/31/98 becomes 5/1/98.