Errors in Richviewedit DropFile
Posted: Thu Jul 29, 2021 9:05 pm
Hi,
If I try to clear the existing data in my rve in the dropfile method, I get errors reported by madexcept. Mostly it's a list index out of bounds I think from the tcustomrvdata.getitem call. Not sure what the problem is. All I have in dropfile now is
RichViewEdit1.Clear;
exit;
If I load a large file, it loads OK. But if I try to load a smaller file, it throws the error. It still loads and appears to work, but the errors are concerning.
If I load a smaller file, then a larger one it's OK. But as soon as I try to drop a smaller file onto a larger one it errors IF I scroll the larger file down a ways first. If I leave the larger file scrolled all the way up it will let me drop the smaller file.
If I remove any calls to Clear or ClearAll it will work, but just inserts the smaller file into the larger one which is not what I want.
I've tried InsertText and SetTextBuf and both have errors as above.
Any ideas appreciated.
If I try to clear the existing data in my rve in the dropfile method, I get errors reported by madexcept. Mostly it's a list index out of bounds I think from the tcustomrvdata.getitem call. Not sure what the problem is. All I have in dropfile now is
RichViewEdit1.Clear;
exit;
If I load a large file, it loads OK. But if I try to load a smaller file, it throws the error. It still loads and appears to work, but the errors are concerning.
If I load a smaller file, then a larger one it's OK. But as soon as I try to drop a smaller file onto a larger one it errors IF I scroll the larger file down a ways first. If I leave the larger file scrolled all the way up it will let me drop the smaller file.
If I remove any calls to Clear or ClearAll it will work, but just inserts the smaller file into the larger one which is not what I want.
I've tried InsertText and SetTextBuf and both have errors as above.
Any ideas appreciated.