[Error] Unit1.pas(263): Statement expected, but expression of type 'Int64' found
无法编译,这种问题是什么原因。怎么解决呢?
...全文
7332打赏收藏
请教Int64和integer的区别
我在使用 TFileStream.Seek(int64,类型)函数时 如果第一个参数 $100 没问题 但是当参数设置为$900即十进制的2304的时候,就会提示 [Error] Unit1.pas(263): Statement expected, but expression of type 'Int64' found 无法编译,这种问题是什么原因。怎么解决呢?
seek使用时第一个参数是移动的长度,第二个参数是移动的起始位置, 0-最开始, 1-当前位置, 2-文件尾部。
第一个参数取$100时,移动的范围在有效范围内,当你取$900时越界。
Statement expected, but expression of type 'Int64' found
表示指定的值,超过的你声明的预期值。