PDA

Click to See Complete Forum and Search --> : Late Bind Timer


Phenglai
Oct 8th, 2003, 01:01 PM
Does anyone know how to late bind a Timer in a Class?

I need to use a timer in an object and the timer is located on a form. I have dont the same thing with the MSComm Control but I can figure out how to bind a timer.

To do the comm control I did this

Set mvarComm = CreateObject("MSCommLib.MSComm")


Then once its declared in the object, bind it to the form

Public Property Let SetCommPort(Comm As Object)

Set mvarComm = Comm

End Property



gSysControl.SetCommPort = frmTowercam.comControl


Does anyone know the library for the timer?

If not, any other way to do this?

Jerel

dzzie
Oct 9th, 2003, 03:27 PM
can you include the timer on the form and then just pass in
the ref to teh class ?

The timer object is built into the vb runtimes i believe so I dont
think you can createobject it

a work around would be to use an api timer that you could
create dynamically..pscode.com is sure to have a couple api
timer class examples....or mckinneys hardcorevb has one