There is an (undocumented) system class "thread" that can be used to handle thread runs. To figure out how it may work you can look at the classes that use that system class. Examples are: SysDataSearchDaemon, tutorial_Thread (!)
Hope it helps a little.
Helmut
-----Urspr�ngliche Nachricht-----
Von: Jens Fudge [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 05. August 2004 10:52
An: [EMAIL PROTECTED]
Betreff: [development-axapta] Thread programming in Axapta
Hi all
I'm trying to grasp how the threading possibilities in Axapta are.
Basically I'm trying to build the following scenario:
A form with a listbox, in the form I have declared a variable of integer type.
There are two buttons on the form.
Button1 creates and starts a thread that in a for-loop increments (i++) the variabel on the form, with a sleep of one second in the loop. After incrementing the value of the variabel is written to the listbox.
Button2 creates and starts a thread that in a for-loop decrements (i--) the variabel on the form, with a sleep of two seconds in the loop. After decrementing the value of the varaibel is written to the listbox.
I have encountered some problems......
I build the threads in seperate classes, they are initialised from the buttons on the form, how do I from the thread access the forms variabel?
How do I access the listbox? How do I enter and leave critical sections?
Hope someone out there can give me a clue of where to go....
Thanks in advance
Jens
------------------------ Yahoo! Groups Sponsor --------------------~--> Yahoo! Domains - Claim yours for only $14.70 http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

