// Define and initialize the variable for the input parameter
Int32 CustomerNumber = 33; // Create the ParamArray ParamArray parms = new ParamArray(1); // Add the input parameter to the ParamArray parms.AddInteger(0, CustomerNumber, ParamArrayMode.INPUT); // Run the procedure or user-defined function ... |
// Define and initialize the variable for the input parameter
Int32 CustomerNumber = 33; ... //Define and set the holder class for the input parameter //to null or an integer based on the variable value IntHolder hCustomerNumber = new IntHolder( ); iCustomerNumber = new Integer(CustomerNumber) if (CustomerNumber > 33) hCustomerNumber.Value = null; else hCustomerNumber.Value = (Object) iCustomerNumber; // Create the ParamArray ParamArray parms = new ParamArray(1); // Add the input parameter to the ParamArray parms.AddInteger(0, hCustomerNumber, ParamArrayMode.INPUT); // Run the procedure or user-defined function ... |