Create a Thread ??

Started by Haakon Birkeland, September 24, 2005, 08:14:43 PM

Previous topic - Next topic

Haakon Birkeland

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
Haakon 8o)

TechSupport

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).

Haakon Birkeland

By the is there a way to get the name of all the subs and function similar to JF by pressing F4

Thanx
bert
Haakon 8o)

TechSupport

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. :)