Naomi,
Just creating two arrays of objects in the form
cal(1), cal(2), cal(3).... enc(1), enc(2), enc(3).
And works everywhere... except as I posted.. This code has been working OK for about 8 years.
For one more weirdness... I can only make it fail when the data server is Oracle. Does not fail on SQL server...but this section of code is not related to any data handling...
Regarding addobject(), the first two parameters are mandatory:
Object.AddObject(cName, cClass [, cOLEClass] [, aInit1, aInit2 ...])
Thanks!