procedure TRecordStream.First;
begin
{ This function positions the file pointer to the beginning
of the stream }
Seek(0, 0);
end;procedure TRecordStream.Last;
begin
// This procedure positions the file pointer to the end of the stream
Seek(0, 2);
Seek(-GetRecSize, 1);
end;
Seek 怎么理解啊?
begin
{ This function positions the file pointer to the beginning
of the stream }
Seek(0, 0);
end;procedure TRecordStream.Last;
begin
// This procedure positions the file pointer to the end of the stream
Seek(0, 2);
Seek(-GetRecSize, 1);
end;
Seek 怎么理解啊?
解决方案 »
- delphi EX3在线安装
- 求问:如何将BDgrid中数据存入到其他表中
- 如何获取存储过程中的return值?
- 用IDSMTP发送附件的问题,请各位有经验的大哥帮帮忙!
- 在delphi中如何使用cdo,因为我的一句" Msg.CreateMHTMLBody(URL, cdoSuppressNone, '', '');"老是提示"语法无效"
- 有关tdbgrid?
- 关于制作可编辑的报表问题,急!!!!!!!马上结
- 有关于动态数组和Access Violation的错误,请大家指教!
- 一个基于IOCP服务器 发送的问题
- 取得TImage加载文件名
- delphi中如何使用c++写的dll,急!
- 怎样在位图上写字?请高手不吝赐教!
不过我没用过 也不清楚参数的意思
将流移入特定的介质, soFromBeginning = 0;
soFromCurrent = 1;
soFromEnd = 2;soFromBeginning Offset is from the beginning of the resource. Seek moves to the position Offset. Offset must be >= 0.soFromCurrent Offset is from the current position in the resource. Seek moves to Position + Offset.soFromEnd Offset is from the end of the resource. Offset must be <= 0 to indicate a number of bytes before the end of the file.
function Seek(const Offset: Int64; Origin: TSeekOrigin): Int64; overload; virtual;
Origin起始点
0表示从开头
1表示从当前点
2表示从最后