version 2003
PA_FreezeProcess (pNum)
Parameter | Type | Description | |
pNum | long | Process number |
Description
The routine PA_FreezeProcess suspends the execution of processes whose process number is pNum until it is reactivated by a call to PA_UnfreezeProcess.
This entry point does the same thing as the 4D Command PAUSE PROCESS; please refer to the 4th Dimension Language Reference manual for more information.
Example
Freeze current process during an infinite loop.
while(!something done) { PA_FreezeProcess(PA_GetCurrentProcess()) // we have been unfrozen. Time to work /* . . . code . . . */ }
See Also
PAUSE PROCESS, PA_UnfreezeProcess.
Error Handling
Use PA_GetLastError to see if an error occurred