D
Doug
Hi,
I'm trying to use a method like so to get values from within an
IDataParameter collection:
protected System.Object GetParameterValue(IDataParameterCollection
parameterCollection, System.String parameterName)
{
System.Object returnValue = null;
foreach(IDataParameter paramMember in parameterCollection)
{
if(paramMember.ParameterName.Equals(parameterName))
{
returnValue = (System.Object) paramMember.Value;
break;
}
}
return returnValue;
}
The problem is that this returns the word "Output" for any output
parameter, it does not return the actual value of the output parameter.
Why is that?
I'd like to keep this method as non-platform specific as possible so
converting it to a SQLParameter object wouldn't work for me.
I'm trying to use a method like so to get values from within an
IDataParameter collection:
protected System.Object GetParameterValue(IDataParameterCollection
parameterCollection, System.String parameterName)
{
System.Object returnValue = null;
foreach(IDataParameter paramMember in parameterCollection)
{
if(paramMember.ParameterName.Equals(parameterName))
{
returnValue = (System.Object) paramMember.Value;
break;
}
}
return returnValue;
}
The problem is that this returns the word "Output" for any output
parameter, it does not return the actual value of the output parameter.
Why is that?
I'd like to keep this method as non-platform specific as possible so
converting it to a SQLParameter object wouldn't work for me.