M
Matt Gregory
I have a class method that looks like this:
double TJDBCustRewardTable::GetTotal(RewardsTotalType totalType, AnsiString CustNum, int CustSubNum, TDateTime StartDate, TDateTime EndDate)
What would be the best way to make the StartDate and EndDate parameters optional?
I don't want to use overloading because I want to call this method with a function pointer.
I would like to declare this like:
double GetTotal(RewardsTotalType totalType, AnsiString CustNum, int CustSubNum, TDateTime StartDate = NULL, TDateTime EndDate = NULL);
and then test for NULL in the method body, but I know that won't work.
Thanks!
Matt
double TJDBCustRewardTable::GetTotal(RewardsTotalType totalType, AnsiString CustNum, int CustSubNum, TDateTime StartDate, TDateTime EndDate)
What would be the best way to make the StartDate and EndDate parameters optional?
I don't want to use overloading because I want to call this method with a function pointer.
I would like to declare this like:
double GetTotal(RewardsTotalType totalType, AnsiString CustNum, int CustSubNum, TDateTime StartDate = NULL, TDateTime EndDate = NULL);
and then test for NULL in the method body, but I know that won't work.
Thanks!
Matt