VisuFbElemTextEditor.prvCheckResultingLineLengthsBeforePaste (METH)

METHOD prvCheckResultingLineLengthsBeforePaste : BOOL

This method checks the text we got from the clipboard, if the text can be pasted into the current selection resp. at the current caret position without producing too long lines. The return value is TRUE if the check found no errors.

InOut:

Scope

Name

Type

Comment

Return

prvCheckResultingLineLengthsBeforePaste

BOOL

Input

cbpTextBuffer

Stu.CharBufferPtr

Represents the buffer, that contains the (perhaps converted) string to paste

udiStringLength

UDINT

The length of the string

Output

iCountLineBreaks

INT

Returns the number of linebreaks within the text to paste.