Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visual Class Builder
Message
De
09/09/1999 13:39:05
 
 
À
09/09/1999 12:49:05
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00248040
Message ID:
00263008
Vues:
38
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform