OUTPUT value in a stored procedure

Hello, everyone

How can I get the output value of a stored procedure
from the Delphi code?

I declare it as OUTPUT in the SQL Server, and as ptOutput

Nevertheless I can't get it.
All the time I get 0.

Vasily.