Resolved my issue by removing select case
CREATE FUNCTION WorkDays
(IN :StartDate DATETIME, :EndDate DATETIME )
RETURNS INTEGER;
BEGIN
DECLARE :Var1 Integer;
DECLARE :Var2 Integer;
DECLARE :Var3 Integer;
if...
Hi
Forgot to mention the function can be created but when i try to use the function in the select statement get this message pop-up [LNA][Pervasive][ODBC Engine Interface]Expression evaluation error.
Statement
select WorkDays('2009-01-01 00:00:00','2009-01-09 00:00:00')#
Every time i run this function getting an error not sure what i am doing wrong.
Using Pervasive 9.71
CREATE FUNCTION WorkDays
(IN :StartDate DATETIME, IN :EndDate DATETIME)
RETURNS DATETIME;
BEGIN
RETURN
(SELECT...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.