VoDbZap Function | |
Remove all records from open files.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax FUNCTION VoDbZap() AS LOGIC
public static bool VoDbZap()
Request Example
View SourceReturn 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 global structure, StrucErrInfo, will contain needed information regarding any error that occurs. See DBZap() for more information.
Examples
This example demonstrates a typical zap operation:
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