Topic complex |
Table functions |
Function |
cleardat() |
Short |
Deletes all records of a file |
Syntax |
ClearDat(Tabelle: INTEGER) : INTEGER |
Parameter |
table: table handle of OPENDB |
Return |
Error code
0 = table successfully depleted |
See also: |
|
Description |
Deletes without any call back every record from a table.
Example
VAR fc : INTEGER
fc:=ClearDat(vehicles)
IF fc=115 THEN cgiwriteln('table is opened to read now')
ELSIF fc<>0 THEN
cgiwriteln(TDB_ERRORSTR(fc))
ELSE
cgiwriteln('table is empty now')
END
|