// Define and initialize the variable for the input-output parameter
Int32 CustomerNumber = 33; // Create the ParamArray ParamArray parms = new ParamArray(1); // Add the input-output parameter to the ParamArray parms.AddInteger(0, CustomerNumber, ParamArrayMode.INPUT_OUTPUT); // Run the procedure ... // Fill output parameter // The output value is always returned as an Object // You need to cast the Object before assigning it. CustomerNumber = (Int32) parms.GetOutputParameter(0); |