xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

DbCopyExtStruct()

Creates a structure extended database file.

Syntax

DbCopyExtStruct( <cDatabaseExt> ) --> lSuccess

Arguments

TO <cDatabaseExt>
This is name of the database file to create. It can include path and file extension. When no path is given, the file is created in the current directory. The default file extension is DBF.

Return

The function returns .T. (true) when the structure extended file is sucessfully created, or .F. (false) when no database is open in a work area.

Description

Function DbCopyExtStruct() creates a new structure extended database file. It is the functional equivalent of command COPY STRUCTURE EXTENDED. Refer to this command for more information on structure extended database files.

Info

See also:COPY STRUCTURE, COPY STRUCTURE EXTENDED, CREATE, CREATE FROM, DbCopyStruct(), DbCreate(), DbStruct()
Category: Database functions , xHarbour extensions
Source:rdd\dbstrux.prg
LIB:xhb.lib
DLL:xhbdll.dll

Example

// The example creates a structure extended database file
// and displays its contents.

   PROCEDURE Main

      USE Customer
      DbCopyExtStruct( "Test.dbf" )

      USE Test

      Browse()

      USE
   RETURN

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