>okay
>i replaced the statememt add class in the for loop for this one:
>
>CREATE CLASS (arrClasses[ix,1]) OF (lcNewClassLib) AS (arrClasses[ix,1]) FROM (lcSourceClassLib) NOWAIT
>
>I'm almost there, thanks to your code example, but...
>With the create class statement the class designer opens for everytime i go through the loop.
>
>Is there a way to NOT make this happen?
Yes:
oTempObj=newobject(arrClasses[ix,1], lcSourceClassLib)
oTempObj.SaveAsClass(lcNewClassLib, "b"+arrClasses[ix,1])
release oTempObj
I suggest adding a prefix to the name of the class, just to avoid ambiguity.