Throws
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
DhSQLException
Notes
- The
getParam()method returns the value of anINOUTorOUTparameter identified by the number you specify in the fieldIndexparameter. getParam()returns the value as an object of the data type you specify in the fieldTypeparameter. SincegetParam()returns the result as an instance of class Object, you must explicitly cast your inout_var variable to the correct data type. - If the
OUTorINOUTparameter is of data typeCHARACTER, thengetParamreturns a JavaStringObject. You must declare a procedure variable of typeString, and explicitly cast the value returned bygetParamto typeString. Before callinggetParam()you must call theSQLCursor.wasNULLmethod to test whether the returned value isNULL. IfgetParam()is called for aNULLvalue, it raises aDhSQLException.