Hello Roger
How can I close all the Thread that are created to the windows that are open
How can I close all the Thread
How can I close all the Thread
Nolberto Paulino
Regards
Regards
Re: How can I close all the Thread
Code: Select all
FUNCTION CloseAllWindows()
LOCAL aChildList, i
aChildList := MainWindow():drawingArea:childList()
FOR i := 1 TO Len(aChildList)
PostAppEvent(xbeP_Close,,,aChildList[i])
Sleep(50)
NEXT
RETURN nil
The eXpress train is coming - and it has more cars.
Re: How can I close all the Thread
Roger this function MainWindow () does not exist
rdonnay wrote:Code: Select all
FUNCTION CloseAllWindows() LOCAL aChildList, i aChildList := MainWindow():drawingArea:childList() FOR i := 1 TO Len(aChildList) PostAppEvent(xbeP_Close,,,aChildList[i]) Sleep(50) NEXT RETURN nil
Nolberto Paulino
Regards
Regards
Re: How can I close all the Thread
Do you have a Get-Set function that points to your main dialog window?function MainWindow () does not exist
Do you know what I mean by this?
Code: Select all
// Main dialog window
DCREAD GUI EVAL {|oDlg|MainWindow(oDlg)}
FUNCTION MainWindow( oDlg )
STATIC soDlg
IF Valtype(oDlg) == 'O'
soDlg := oDlg
ENDIF
RETURN soDlg
The eXpress train is coming - and it has more cars.
Re: How can I close all the Thread
Thanks Roger
rdonnay wrote:Do you have a Get-Set function that points to your main dialog window?function MainWindow () does not exist
Do you know what I mean by this?
Code: Select all
// Main dialog window DCREAD GUI EVAL {|oDlg|MainWindow(oDlg)} FUNCTION MainWindow( oDlg ) STATIC soDlg IF Valtype(oDlg) == 'O' soDlg := oDlg ENDIF RETURN soDlg
Nolberto Paulino
Regards
Regards