This is too funny....how about a RELEASE WINDOW "Class Designer" in the code line right after the CREATE CLASS?
>>Fred ----
>>
>>*** SUBCLASS.PRG
>>LPARMS cOldClass,cOldClassLib,cNewClass,cNewClassLib
>>CREATE CLASS &NewClass OF &cNewClassLib AS &cOldClass FROM &cOldClassLib NOWAIT
>>RETURN
>>
>>From the Command Window, type =Subclass("oldclass","oldlib","newclass","newlib")
>>The NOWAIT option on create class will work in code.
>>
>>
>Yes, but it STILL pops up the ClassDesigner. It just doesn't wait before executing the next line of code...
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05