Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Starting a timer in another application
Message
 
 
To
20/02/2005 21:10:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
00988749
Message ID:
00988757
Views:
34
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform