Is the code snippet below the preferred way of chking for success of
executeImmediate? Any tips for making it better?
Also, out of curiosity, I tried to find CSpDataObject.SUCCESS mentioned in the
API to see if maybe there was a CSpDataObject.FAILURE in case I wanted to
directly chk for failure instead. But I couldn't find any mention of a variable
called "SUCCESS" in the CSpDataObject class or its ancestors. Did I miss it
somehow? Where is it defined?
Thanks,
Janet
try
{
CSpDBResult result = CSpDataObject.executeImmediate(sDataSource, sSelect);
int errorCode = result.getResultStatus().getErrorCode();
if( (errorCode == CSpDataObject.SUCCESS) )
{ // good
}
else
{ // bad
}
}
catch(Exception ex)
{
}
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]