Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Not sure how to use FLL's
Message
De
16/12/2000 23:51:00
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00454320
Message ID:
00454456
Vues:
25
Larry:

Your suggestion worked - in a strange way, but it worked.

This did not work:
SetUpTimer(1,200,"_Screen.ActiveForm.DoThisMethod()")

But this did:
lcMethod = _Screen.ActiveForm.DoThisMethod()
SetUpTimer(1,200,"&lcMethod")

Thanks


>While I haven't worked with this library, I don't think you can use contructs like THIS and THISFORM. These are not viable outside of the context of the control/form and the FLL runs outside of that context.
>
>You may be able to use something like _Screen.ActiveForm, I don't know. However, as the ActiveForm changed, the timer would would end up firing the same method on differnt forms.
>
>>Hi:
>>
>>I Downloaded cppTimer.FLL from the Files section.
>>
>>The sample program runs great!!!
>>
>>This is how you start the timer and execute a command:
>>SetupTimer(nTimerNo,nTimerInterval,cCommand)
>>i.e. SetUpTimer(1,200,"QUIT")
>>
>>From within my form, SetUpTimer(1,200,"QUIT") executes and shuts down
>>my program.
>>
>>However, a line such as ...
>>
>>WITH THISFORM
>>.....SetUpTimer(1,200,".DoThisMethod()")
>>ENDWITH
>>
>>does nothing.
>>
>>What's up with that?
>>
>>TIA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform