trichview.com

trichview.support




Re: "Invalid Carret Position" error!


Return to index


Author

Message

Mamouri

Posted: 04/24/2003 7:43:45


Dear Sergey

I think if a record is empty and try to edit and post it this error raised.

I solved my problem with a check. I checked if the document is empty just

do nothing otherwise edit it.

with using following line:


IsEmpty = (rve.ItemCount=0) or ((rve.ItemCount=1) and

(rve.GetItemStyle(0)>=0) and (rve.GetItemText(0)=''));


I think if DBRichViewEdit is empty and you try following code, this error

raised:

Table1.Edit;

     while not DBRichViewEdit.SearchText('test', [rvsoDown]) do

           DBRichViewEdit.ApplyTextStyle(1);

Table1.Post;


Regards



"Sergey Tkachenko" <[email protected]> wrote:

>This is may be because of incorrect using of the component, or because of

a

>bug in the component.

>How can I reproduce it?

>

>>

>> In DBRichViewEdit, sometimse when I post record an error raised:

>> "Invalid Carret position, contact the developer!"

>>

>> Why this error raised?

>> Does anybody can help?

>>

>> Thankx

>

>





Powered by ABC Amber Outlook Express Converter