7
Reply

Convert.ToDecimal(command.ExecuteScalar()) returns nothing

Nel

Nel

Jul 13 2012 7:38 AM
4.5k
Hi,


Does anybody have an idea why
Convert.ToDecimal(command5.ExecuteScalar())
returns nothing in my C# code?

I have a stored procedure which when tested returns good result, but when I call the procedure from my c# application,
......
.......
decimal saldo=Convert.ToDecimal(command5.ExecuteScalar())

when debugging I can see  that saldo shows no value.
I would appreciate any idea

Answers (7)