procedure readf(filea:string);
var
filet:filetext;
straa:string;
begin
if assignfile(filet,filea) then//如果成功在处理
begin
reset(filet);
Richedit1.lines.clear;//先清空
while not eof(filet)
begin
readln(filet,straa);
richedit1.lines.add(straa); //这里出错,你最好跟踪一下straa的值,可能读到了什么richedit产生误解的字符;//具体情况具体处理
end;
closefile(filet);
end;
end;
var
filet:filetext;
straa:string;
begin
if assignfile(filet,filea) then//如果成功在处理
begin
reset(filet);
Richedit1.lines.clear;//先清空
while not eof(filet)
begin
readln(filet,straa);
richedit1.lines.add(straa); //这里出错,你最好跟踪一下straa的值,可能读到了什么richedit产生误解的字符;//具体情况具体处理
end;
closefile(filet);
end;
end;
解决方案 »
- delphi中的变量
- 我正在做一个ACTIVEX控件,怎么让它在设计时和timer那种效果一样
- ●【100分】求救关于byte问题???急,在线立刻给分
- DBGRID的內COMLUMS[3]內是一個字段SCODE,我要讓他出現選擇框Scode,sname
- 用delphiX,局部半透明怎么实现呀?
- 如何将非VCL控件封装为ActiveX控件???
- Access无法更新大量数据??
- 关于Delphi和VC之间的接口问题
- 请问如何从注册表中读出DHCP是不是enable,(在window me中)?急!
- 组件安装出错???
- 关于动态链接库
- 嗷嗷难问题之一:动态更换服装面料问题,请多提思路,50分,不够再补
RichEdit中了。所以,在插入时,用try拦截就可以了。
while not eof(filet)
begin
readln(filet,straa);
try
richedit1.lines.add(straa);
except
end;
end;
RichEdit line insertion errorEither your system is low on available resources or your source data contains unacceptable control characters (i.e. control characters, not ASCII text). Although this error message is rare, it does occur on older computers running Windows 95 and the First Edition of Windows 98. If you are running either of these operating systems, you should consider upgrading to Windows 98 Second Edition. 要不是您的系統可用資源過低,要不然就是來源資料裡含有不接受的控制字元 (如控制字元而非 ASCII 文字等)。此狀況並不常見,出現在舊版的 Windows 95, 98 第一版,因此建議考慮換成 98 第二版以上。
Philosophical Quotations for Windows - Known Errors1. Reported 28/07/01 - Exception EReadError in module QUOTES.EXE at 00010F19. Error reading RichEdit2.Lines.Strings. RichEdit line insertion error. This error message is due to a size limitation with richedit components for some versions of Windows. An exception error is raised when trying to insert text greater than 64KB. It has to do with the version of riched32.dll that you're using on your computer.如大家没有什么问题的话,28号结分。