General Component
Fnd_Gen_QuitNow
Fnd_Gen_QuitNow ({quit?}) -> Boolean
Parameters
| Parameter | Type | Description |
|---|---|---|
| quit? | Boolean | Cause Foundation to quit now? (optional) |
| Function result | Boolean | True if it is time to quit |
Description
This routine has two different formats. If you create a background process that runs until the user selects Quit, you should call this method on a regular basis. If you do not pass a parameter to this method, it will return True if the user is trying to quit the application. When Foundation tries to quit, it will wake any paused or delayed processes so they can check the value returned by this function. While(Not(Fnd_Gen_QuitNow ))
` Do background stuff here.
End if
The second way to use this routine is to use it to tell Foundation you want to quit the application, just as if the user had selected Quit from the File menu. Just pass True to the method, and Foundation will attempt to quit all processes, and then call QUIT 4D (if the database is compiled).
Fnd_Gen_QuitNow (True)
Extracted source text
Fnd_Gen_QuitNow ({quit?}) ➔ Boolean
Parameter Type Description
quit? Boolean Cause Foundation to quit now? (optional)
Function result Boolean True if it is time to quit
This routine has two different formats.
If you create a background process that runs until the user selects Quit, you should call this method on a
regular basis. If you do not pass a parameter to this method, it will return True if the user is trying to quit
the application. When Foundation tries to quit, it will wake any paused or delayed processes so they can
check the value returned by this function.
While(Not(Fnd_Gen_QuitNow ))
` Do background stuff here.
End if
The second way to use this routine is to use it to tell Foundation you want to quit the application, just
as if the user had selected Quit from the File menu. Just pass True to the method, and Foundation will
attempt to quit all processes, and then call QUIT 4D (if the database is compiled).
Fnd_Gen_QuitNow (True)