Click or drag to resize

DbCopyXStruct Function

Copy the field definitions in a workarea to a structure-extended file as data..

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.0
Syntax
 FUNCTION DbCopyXStruct(
	cFile AS STRING
) AS LOGIC

Parameters

cFile
Type: String
The name of the target database file, including an optional drive, directory, and extension.

Return Value

Type: Boolean
TRUE if successful; otherwise, FALSE.
Remarks
If cFile does not exist, it is created. If it exists, this function attempts to open the file in exclusive mode and, if successful, the file is overwritten without warning or error. If access is denied because, for example, another process is using the file, NetErr() is set to TRUE. DbCopyXStruct() creates the specified file in ANSI or OEM character set format, based ON the SetAnsi() setting. (for more information, refer to the SetAnsi() function.)
See Also