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.

OnText event

Project: I/O Utility Classes

Unit: PJPipeFilters

Class: TPJUnicodeBMPPipeFilter

Applies to: ~>1.0

property OnText: TPJUnicodeTextReadEvent;

Description

This event is triggered whenever Unicode text is read from the associated pipe. The event occurs once for every call to the ReadPipe method. Once the data read from the pipe is converted to Unicode text it is not processed further before passing the text to the event handler.

The event handler is passed the following parameters:

Remarks

In the event that ReadPipe reads an empty pipe, or reads just one byte, the text passed to an OnText event handler will be the empty string.

The event handler is never triggered by the Flush method.

Note that the UnicodeString type must be defined to use this event. This is a native type on Delphi 2009 or later. For Delphi 2007 and earlier the PJPipeFilters unit defines UnicodeString as WideString.

See Also