Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help on using Threads

Status
Not open for further replies.

TompaD

Technical User
Oct 2, 2003
6
SE
Hi!

I´m stuck with a problem with threads - I´ve done this before and it works but now it´s impossible....

It´s like this - I have a form with some checkboxes in,
and in my threadunit some statesment...like if checkbox1.checked = false then etc..etc...BUT I got the errormessage "Undeclared identifier : Chexkbox1.

I have in Form1 under implementation - uses MyThread;
And in MyThreads implementation - uses Form1;

Why don´t it work!!

Regards
TompaD
 
Just a reminder:
If you are referencing components on the mainform (main-thread) from within (the execute procedure) in your (sub) thread,
you can only do so by calling the Synchronize method to do it for you ...

- fruNNik
 
Griffyn:

I´ve tried that to, but no luck....

fruNNik:

That sounds good, but I´m not sure exactly what you mean.
Could you give me an example?....(yes I´m a newbie on Delhpi)


Regards
Thomas
 
Well you could type in MyThread.synchronize and then put the cursor on the synchronize part and hit F1.
A lot of info there that is not too hard to understand.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top