what do you think about this sample (xHarbour):
- Code: Select all Expand view
- FUNCTION MAIN()
LOCAL hThr := STARTTHREAD( @MyFunc() )
INKEY( 0 )
STOPTHREAD( hThr )
INKEY( 0 )
RETURN NIL
STATIC FUNCTION MYFUNC()
WHILE .T.
THREADSLEEP( 1000 )
TONE( 440, 1 )
ENDDO
RETURN NIL
EMG