Pauses the execution of the specified thread, previously created with CreateThread(). The thread
can be resumed with ResumeThread().
Parameters:
ThreadID - The ID number of the thread you want to pause. This value is returned by CreateThread().
Return value:
This command does not return a value.
Example:
Procedure PrintStuff(dummy.l)
For i.w=0 To 10
Print(".")
Delay(200)
Next
EndProcedure
If OpenConsole()
DefType.l thid
thid.l = CreateThread(@PrintStuff(), @thid)
If thid
Delay(100)
PauseThread(thid)
For i.w=0 To 10
Print("A")
Delay(50)
Next
; Resume thread and give it enough time to complete
ResumeThread(thid)
Delay(3000)
EndIf
CloseConsole()
EndIf
End