Hmm- good catch-
I guess the only way I know of to pause without eating a keystroke would be the Sleep fundtion:
declare Integer Sleep in Win32API integer nSeconds
=Sleep(2000) && Pause for 2 seconds
But I don't know if this will work, because Sleep causes VFP to give up it's timeslice, and it still might not have time to close the Class Designer.
>Doesn't the INKEY(2) swollow the KEYBOARD "{Ctrl+W}"?
>
>>>*******************************************
>>>WAIT WINDOW "Creating class cboRexClLookUp" NOWAIT
>>>loObject = SUBCLASS("RexLookUp","RexCL","cboRexCLLookUp","RexCl")
>>>
>>>WITH loObject
>>> .RowSource = "v_RexClLookUp.cName,iId"
>>>ENDWITH
>>>
>>>ACTIVATE WINDOW "Class Designer"
>>>KEYBOARD "{Ctrl+W}"
>>>
>>>
>>>set classlib to RexCl additive
>>
>>I haven't tried you code, but you might want to give VFP a second to close the file... try an INKEY(2) after the KEYBOARD.
Erik Moore
Clientelligence