xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

BlobRootDelete()

Deleted the root area of a BLOB file.

Syntax

BlobRootDelete() --> lSuccess

Return

The return value is .T. (true) if the root area is successfully deleted, otherwise .F. (false) is returned.

Description

BlobRootDelete() removes the data stored in the root area of a BLOB file. This data is written by BlobRootPut().

Note:  the file Blob.ch must be #included for BlobRootDelete() to work.

Info

See also:BlobRootGet(), BlobRootPut(), BlobRootLock()
Category: Blob functions , Database functions
Header:blob.ch
Source:rdd\dbcmd.c, rdd\dbffpt\dbffpt1.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

// The example demonstrates the coding pattern that must be used to
// remove the root area of a BLOB file.

   #include "Blob.ch"

   REQUEST DBFCDX

   PROCEDURE Main
      USE PhotoArchive ALIAS Photos VIA "DBFCDX"

      IF BlobRootLock()
         BlobRootDelete()
         BlobRootUnlock()
      ELSE
         Alert( "Unable to lock the root area" )
      ENDIF

      USE
   RETURN

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe