jbpelletier
Programmer
hi,
im trying to recode the DECODE function for the PLSQL part (since i can't called DECODE in PLSQL)
My problem : i dont know with what i should replace TYPE_TO_USE? by, i whant it to be of any type.
FUNCTION DECODE (in_bool_cond BOOLEAN,in_true TYPE_TO_USE?,in_false TYPE_TO_USE?,) RETURN TYPE_TO_USE?,
IS
BEGIN
IF in_bool_cond THEN
return in_true;
ELSE
return in_false;
END IF;
EXCEPTION
WHEN OTHERS THEN
RAISE;
END;
tanx jb
im trying to recode the DECODE function for the PLSQL part (since i can't called DECODE in PLSQL)
My problem : i dont know with what i should replace TYPE_TO_USE? by, i whant it to be of any type.
FUNCTION DECODE (in_bool_cond BOOLEAN,in_true TYPE_TO_USE?,in_false TYPE_TO_USE?,) RETURN TYPE_TO_USE?,
IS
BEGIN
IF in_bool_cond THEN
return in_true;
ELSE
return in_false;
END IF;
EXCEPTION
WHEN OTHERS THEN
RAISE;
END;
tanx jb