Board index » delphi » Function with parameter
Eric ten Westenend
![]() Delphi Developer |
Function with parameter2008-04-22 02:49:32 AM delphi9 Hi I have a function that i called this way: select GetWeekdays(current_date, current_date, 0) from...... The function is defined as function GetWeekdays(Today: PISC_QUAD; Date1: PISC_QUAD; var WorkDaysOnly : Integer): integer; cdecl; export; Now i want to be 'current_date' a variable But if i use select GetWeekdays(:currentdate1, :currentdate1, 0 ) from and fill parameter :currentdate as TDate IbDataset2.ParamByName('currentdate1').asDate := Date; i get a Dynamic SQL Error, Data type unknown What goes wrong? running IB2007 /Delphi 2007 using IBX Eric |