|
Previous Top Next |
Prototype: | (WINDOW pWin, String pProcedureName, ITThreadLimitClass pProcClass, Byte pMaxRuns),BYTE |
pWin | Reference to the procedure window. |
pProcedureName | Name of the procedure. |
pProcClass | Instance of the Thread Limit Class. |
pMaxRuns | Maximum number of runs for this procedure. |
Returns | If the procedure was added successfully the method returns True. If the procedure hit the MaxRuns limit, the method returns False. |
This method is called by the AddProcedure method of the Thread Limit Class. It is used to add or update the procedure listing in the global class. If the procedure name already exists, the ProcRunCnt field in the WindowThreads queue is incremented.
This method is called after the window is opened and the RemoveProcedure method is called when it is closing.
See also: