Navigation:  Language Reference > App C - PROP: Runtime Properties > Complete Property List >====== PROP:Thread ====== Previous pageReturn to chapter overviewNext page

Returns the thread number of a window. This is not necessarily the currently executing thread, if you've used SETTARGET to set the TARGET built-in variable. (READ-ONLY)

Example:

WinView   WINDOW('View'),AT(0,0,320,200),MDI,MAX,HVSCROLL,SYSTEM

     END

ToolboxThread BYTE

CODE

OPEN(WinView)

ToolboxThread = ToolboxWin{PROP:Thread}   !Get window thread number

ACCEPT

END