problem with checkpoint - add
Posted: Fri Feb 10, 2012 5:27 pm
Hello sergey
I did this code to create several checkpoints.
var
str : string;
Editor : TDBSRichViewEdit;
begin
PegaEditor(Editor); // get the active editor
str := Editor.RichViewEdit.GetSelTextW;
if str='' Then Begin
ShowMessage('No word to create checkpoint');
end else begin
if Editor.RichViewEdit.CanChange Then Begin
Editor.RichViewEdit.AddNamedCheckpoint(Str);
Editor.RichViewEdit.Format;
Qtextos.Post;
end;
CarregaCheckPoint; // procedure Load CheckPoints into a listbox
end;
I am having the following problem:
1) I can only create one checkpoint
2) My text isn't being save with checkpoint created.
Why?
Thanks
I did this code to create several checkpoints.
var
str : string;
Editor : TDBSRichViewEdit;
begin
PegaEditor(Editor); // get the active editor
str := Editor.RichViewEdit.GetSelTextW;
if str='' Then Begin
ShowMessage('No word to create checkpoint');
end else begin
if Editor.RichViewEdit.CanChange Then Begin
Editor.RichViewEdit.AddNamedCheckpoint(Str);
Editor.RichViewEdit.Format;
Qtextos.Post;
end;
CarregaCheckPoint; // procedure Load CheckPoints into a listbox
end;
I am having the following problem:
1) I can only create one checkpoint
2) My text isn't being save with checkpoint created.
Why?
Thanks