Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visual Class Builder
Message
From
09/09/1999 13:39:05
 
 
To
09/09/1999 12:49:05
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00248040
Message ID:
00263008
Views:
36
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
Previous
Reply
Map
View

Click here to load this message in the networking platform