Click or drag to resize

VoDbZap Function

X#
Remove all records from open files.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION VoDbZap() AS LOGIC
Request Example View Source

Return Value

Type: Logic
TRUE if successful; otherwise, FALSE.
Remarks
VODBZap() is the same as DBZap().
This function, however, does not call the error handler and will not, therefore, produce a runtime error message or create an error object if it fails. Thus, it may be important to check the return value to determine if the function succeeded.
the LastRddError property in the runtime state. will contain needed information regarding any error that occurs.
See DbZap for more information.
Examples
This example demonstrates a typical zap operation:
X#
 1USE sales EXCLUSIVE NEW
 2IF !NetErr()
 3    SET INDEX TO sales, branch, salesman
 4    IF VODBZap()
 5        ? "Zapped OK"
 6    ELSE
 7        ? "Error detected during zap"
 8    ENDIF
 9    CLOSE sales
10ELSE
11    ? "Error detected when opening the file"
12ENDIF
See Also