StoredProc returning values from Sybase via ODBC-Possible?

So here's the deal. I'm trying to get a return value from a stored
procedure residing on a sybase sever which I'm accessing via ODBC. The
stored procedure updates a table, then does a SELECT @returnvalue=somefield
from sometable followed by a RETURN @returnvalue. Now I'm new to SQL, but
the stored procedure appears to be OK, but all I get out from my delphi app
when I do
   StoredProc1.Params[0].AsInteger is zero. Hmmm.

any idea as to what's going on here? is this even possible via ODBC?

Any help appreciated...

Brad Miller
Timeoil...@aol.com