以下代码在程序中加入了一个Clicklist的字符串列表,用户每按一次鼠标键,程序往Clicklist中加入一字符串,程序结束前把该列表存入文件。 unit Unit1;\\在此报错 interface uses WinTYpes, WinProcs, Classes, Graphics, Forms, Controls, Apps; typeTForm1 = class(TForm)procedure FormCreate(Sender: TObject);procedure FormDestroy(Sender: TObject);procedure FormMouseDown(Sender: TObject; Button: TMouseButton;Shift: TShiftState; X, Y: Integer);private{ Private declarations }public{ Public declarations }ClickList: TStrings; {declare the field}end; varForm1: TForm1; implementation {$R *.DFM} procedure TForm1.FormCreate(Sender: TObject);beginClickList := TStringList.Create; {construct the list}end; procedure TForm1.FormDestroy(Sender: TObject);beginClickList.SaveToFile(ChangeFileExt(Application.ExeName, '.LOG'));{save the list}ClickList.Free; {destroy the list object}end; procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;Shift: TShiftState; X, Y: Integer);beginClickList.Add(Format('Click at (%d, %d)', [X, Y])); {add a string to the list}end; end.报错信息:[错误] Unit1.pas(1): Illegal character in input file: ' ' ($A1A1)
解决方案 »
- 有关数据库插入的操作?
- 关于一段硬盘拷贝代码的问题。
- string和double之间的转化
- 怎样利用DELPHI对WORD模板进行编辑?????
- 在FASTREPORT中运行时如何设定一个MEMO的高度
- BYTE* lpDestBuf 缓冲区中存有图象数据,怎样取出来存为jpeg图象(或bmp)
- 这用的功能怎么实现?
- 我建立了一个表格,其中有一个字段是"到货日" 我设置为String....
- 简单的SQL求助!
- 如何使WebBrowser1的菜单不要弹出来?
- CreateProcess打开进程后,如何知道这个进程窗体的句柄?
- 请问如何使用adocommand,一次性在mssql中创建几个视图?
------------------
it Unit1;//在此报错
这句是什么意思,能说详细点吗,非法字符在什么位置啊,眼睛都看花了,都找不到