0$房天下问答|delphi 编的小程序有点问题。。。。$https://m.fang.com/ask/ask_1404914.html$https://static.soufunimg.com/common_m/m_public/201511/images/asksharedefault.png
packc/pages/ask/detail/detail?askid=1404914
-
delphi 编的小程序有点问题。。。。
varf:textfile;a:string;beginif opendialog1.Execute thenbeginmemo1.Clear ;assignfile(f,opendialog1.filename);reset(f);while not eof(f) dobeginapplication.ProcessMessages;read(f,a);memo1.Lines.Add(a);end;closefile(f);end;我用了一个opendialog 一个button一个memo 想从文本中读东西 但是为甚么在文本中两行中有一行空的 程序就死了想退都退步出来啊 ,如果不空格就能正常执行 为什么啊?
更多
提问者:zoubufeng
发布于2010-12-09
免责声明:问答内容均来源于互联网用户,房天下对其内容不负责任,如有版权或其他问题可以联系房天下进行删除。

关注成功