const
First = '<<';
Next = '>';
Prev = '<';
Last = '>>';function TDataAccess.RecordLeader(const sign :string):Integer;
begin
case sign of //这里是错误,错误代码如下
First : self.Query.First;
Prev : self.Query.Prior;
Next : self.Query.Next;
Last : self.Query.Last;
end; Result := Query.RecordCount;
end;
//****************************************************************************
[Error] Database.pas(53): Ordinal type required
[Error] Database.pas(54): Incompatible types: 'Integer' and 'String'
[Error] Database.pas(55): Incompatible types: 'Integer' and 'Char'
[Error] Database.pas(56): Incompatible types: 'Integer' and 'Char'
[Error] Database.pas(57): Incompatible types: 'Integer' and 'String'
[Fatal Error] myComBox.dpr(13): Could not compile used unit 'Database.pas'
First = '<<';
Next = '>';
Prev = '<';
Last = '>>';function TDataAccess.RecordLeader(const sign :string):Integer;
begin
case sign of //这里是错误,错误代码如下
First : self.Query.First;
Prev : self.Query.Prior;
Next : self.Query.Next;
Last : self.Query.Last;
end; Result := Query.RecordCount;
end;
//****************************************************************************
[Error] Database.pas(53): Ordinal type required
[Error] Database.pas(54): Incompatible types: 'Integer' and 'String'
[Error] Database.pas(55): Incompatible types: 'Integer' and 'Char'
[Error] Database.pas(56): Incompatible types: 'Integer' and 'Char'
[Error] Database.pas(57): Incompatible types: 'Integer' and 'String'
[Fatal Error] myComBox.dpr(13): Could not compile used unit 'Database.pas'
解决方案 »
- 线程里用FormatFileSize后报错undeclared
- 看过flash9文档说明书的请进!!请教一个问题!谢谢大家
- 这样的条件判断怎么写
- 请问这样的多条数据采集曲线(共用X轴,而Y轴不一样)应该怎么做呢?
- 使用了ehlib等一些控件,在调试程序的时候总会跑到控件的代码中去,我把控件的的pas删除只保留dcu文件,在出错的时候又提示找不到控件??.
- 程序员相约------关注
- 如何用程序选中listview中的一项?
- 学DLL部分遇到几个道难题,可是对于你来说是小菜一碟。刚才忘了放分!
- 存储过程的open方法和exeproc方法有什么区别??//牛虻
- Delphi中如何在往地址0x304写入数据?在C中是用outportb('0x304',1)实现的。
- mscomm控件哪有下载啊?麻烦了
- DELPHI的编译问题
.)
A subrange having the form First..Last, where First and Last both satisfy the criterion above and First is less than or equal to Last.A list having the form item1, ..., itemn, where each item satisfies one of the criteria above.