ZSTHREAD SAMPLE
ZSTASK SAMPLE
Code:
TextWindow.WriteLine(ZSUtilities.GetCurrentManagedThreadId())
Sub loop
For i = 1 To 50
TextWindow.WriteLine(i)
TextWindow.WriteLine(ZSUtilities.GetCurrentManagedThreadId())
Program.Delay(5000)
EndFor
EndSub
ZSThread.RunSub("loop")
ZSTASK SAMPLE
Code:
TextWindow.WriteLine(ZSUtilities.GetCurrentManagedThreadId())
Sub loop
For i = 1 To 50
TextWindow.WriteLine(i)
TextWindow.WriteLine(ZSUtilities.GetCurrentManagedThreadId())
Program.Delay(5000)
EndFor
EndSub
ZSTask.RunSub("loop")
ZS