Function TWPCustomRtfEdit.MoveToPreviousField(from_end:Boolean) : string
Unit: WPCTRMemo
Class: WPCTRMemo.TWPCustomRtfEdit
Parameters
-
from_end:Boolean
Returns
The type of the result value is string.
Description
Moves the cursor to the previous field and returns its name.
var s: string;
begin
s := WPRichText1.MoveToNextField(false);
Label1.Caption := s;
if s <> '' then
WPRichText1.SelectFieldAtCP(false, true);
WPRichText1.SetFocus;
end;
var s: string;
begin
s := WPRichText1.MoveToPreviousField(false);
Label1.Caption := s;
if s <> '' then
WPRichText1.SelectFieldAtCP(false, true);
WPRichText1.SetFocus;
end;