PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Haakon Birkeland on September 24, 2005, 08:14:43 PM

Title: Create a Thread ??
Post by: Haakon Birkeland on September 24, 2005, 08:14:43 PM
I am very confused on how and where to put the code for a thread in FF.

Does anybody have a snippet on how do it in Firefly. In EZGUI it was very simple but then again I didn't learn anything when I am out of the shell. I am trying to create a thread that would only be active when a variable is not 0 and terminate when the program is closed.

thanx
Bert
Title: Create a Thread ??
Post by: TechSupport on September 24, 2005, 09:26:15 PM
You can basically put the code for the thread anywhere. You can put it in with the code for a Form, or add a new Module and put it there. During compiling, FireFly collects all of the sub/function names and creates Declares for them (thereby simulating forward referencing so you need not be concerned with having to have one sub/function before or after another, or what order the Forms and Modules are in when the source code is generated).
Title: Create a Thread ??
Post by: Haakon Birkeland on September 25, 2005, 02:06:29 AM
By the is there a way to get the name of all the subs and function similar to JF by pressing F4

Thanx
bert
Title: Create a Thread ??
Post by: TechSupport on September 25, 2005, 11:04:29 AM
There is no F4 JPro type of functionality. You need to use the comboboxes that are at the top of each code editor in order to see what subs/functions belong to each Form/Module.

Come to think of it, JPro's approach is better. :)