EsbClearDatabase

Clears all loaded data in the active database.

Syntax

EsbClearDatabase (hCtx)
ByVal hCtx As Long
ParameterDescription

hCtx

VB API context handle.

Notes

Data deleted using this function cannot be restored. Use it with care!

Return Value

None.

Access

This function requires the caller to have Write privilege (ESB_PRIV_WRITE) for the database, and to have selected it as their active database using EsbSetActive().

Example

Declare Function EsbClearDatabase Lib "ESBAPIN" (ByVal hCtx As Long) As Long

Sub ESB_ClearDatabase ()
   Dim sts As Long
   '***************
   ' Clear Database 
   '***************
   sts = EsbClearDatabase (hCtx) 
End Sub

See Also