August 1999
Intermediate to advanced
1488 pages
72h 53m
English
stproc.outParamCount()
The outParamCount() method of the Stproc object returns the number of output parameters from the stored procedure. Be sure to call this method before calling the outParameters() method to make sure parameters have been returned.
Note
Informix stored procedures do not have output parameters, so this method always returns 0 when run against an Informix database.
Listing 8.144 opens a connection to the database and runs a stored procedure. Based on the number of output parameters, the script writes the parameters to the user's screen.
<SERVER> // Open a connection var myConn = database.connect("ORACLE", "mySID", "myApp", ... |
Read now
Unlock full access