FileRemoveRow Function

Action

Removes the last returned unique row of a virtual user from the specified file. This function only takes effect if the parameter bRemoveUsedRows of the function FileGetNextUniqueRow is set to false. If this parameter is set to true, used rows are removed anyway.

Include file

Kernel.bdh

Syntax

FileRemoveRow( in hFile : long );
Parameter Description
hFile Specifies the file handle that is used to access the file

Example

transaction DemoTrans
begin
  FileGetNextUniqueRow(hWebProject_81, false);
  psWebProject_8Column11 := FileGetCol(hWebProject_81, 1, STRING_COMPLETE);

  if (GetUserId() mod 2 = 0) then
    FileRemoveRow(hWebProject_81);
  end;
end DemoTrans;