Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Starting a timer in another application
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
00988749
Message ID:
00988757
Vues:
37
VFP Timer doesn't work in COM DLL. See Timer in st- or mt dll Thread #615249 and How does timer work Thread #636691 Message #637350.


>i want to enable/start a timer in app1 from app2.
>i created a prg with following code in app1.
>
>DEFINE CLASS HicTimer as Session OLEPUBLIC
>
> *--start the timer with specified interval
> PROCEDURE starttimer(tnInterval)
> m.frmsession.tmrHicpayments.Interval =
>IIF(EMPTY(tnInterval),1000,tnInterval)
> ENDPROC
>
>ENDDEFINE
>
>now i have following code in app2
>lo=CREATEOBJECT('app1.hictimer')
>lo.starttimer(100)
>RELEASE lo
>
>abv code is not working nor giving any error.am i doing right ??
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform