Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

OnWork event

Project: Console Application Runner Classes

Unit: PJConsoleApp

Classes: TPJCustomConsoleApp, TPJConsoleApp

Applies to: ~>3.0

property OnWork: TNotifyEvent;

Description

This event is triggered when the executing application yields control to this class. The frequency with which the event is triggered depends on the value of the TimeSlice property - the smaller the value the more frequently the event is triggered.

Handle the event to perform any required processing between time slices. Examples of the kind of processing you may wish to perform are:

This event is never triggered if TimeSlice is INFINITE.

Remarks

The event is public in TPJConsoleApp and protected in TPJCustomConsoleApp.