EFCreateError 与 JvCsvDataSet
我一直在 Delphi 5 中使用 JvCSVDataSet,它工作得很好。我刚刚转移到 Delphi 2007,现在使用相同的程序,我得到 EFCreateError,无法创建文件“”,我从 MadExcept 3.0 得到错误描述。
这是代码,我在“CADDCOUNT”行中收到错误,但是如果我删除该行,那么在关闭数据集之前我不会收到错误。
jvCsvDataSet1.FileName := 'C:\TEST.CSV';
jvCsvDataSet1.SaveToFile('C:\TEST.CSV');
jvCsvDataSet1.Active := True;
jvCsvDataSet1.Append;
jvCsvDataSet1.FieldByName('LINETYPE').Asstring := 'VERSION';
jvCsvDataSet1.FieldByName('CADDCOUNT').AsString := 'Company Name and address';
jvCsvDataSet1.Post;
jvCsvDataSet1.Active := False;
谢谢, 寻求任何帮助。 金
I have been using JvCSVDataSet with Delphi 5 and it works fine. I just moved over to Delphi 2007 and now with the same program I get EFCreateError, cannot create file "" I got the error description from MadExcept 3.0.
Here are the code,I get the error in the line 'CADDCOUNT', but if I rem out that line then I don't get the error before I close the dataset.
jvCsvDataSet1.FileName := 'C:\TEST.CSV';
jvCsvDataSet1.SaveToFile('C:\TEST.CSV');
jvCsvDataSet1.Active := True;
jvCsvDataSet1.Append;
jvCsvDataSet1.FieldByName('LINETYPE').Asstring := 'VERSION';
jvCsvDataSet1.FieldByName('CADDCOUNT').AsString := 'Company Name and address';
jvCsvDataSet1.Post;
jvCsvDataSet1.Active := False;
Thanks,
for any help.
Kim
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不是也只是碰巧换到了 Vista 或 Windows 7 吗?它们不允许您写入启动驱动器的根目录。
You didn't simply happen to change to Vista or Windows 7 too ? They don't allow you to write to the root of the startup drive.