Salesforce

DbCopy (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

DbCopy (Magic xpa 3.x)

Allows you to copy an existing data file, its definition and data, to a new file. DbCopy supports both ISAM and SQL files.

Syntax:

DbCopy (number,source file name,destination file name)

Parameters:

number – A number that represents the file's sequence in the Data repository.

source file name – An optional string that represents the file specification name.

destination file name – A string that represents the destination file specification name.

Returns:

Logical indicating success or failure

Failure can occur, for example, if the source file does not exist, is currently opened or is defined as a resident table or as a view.

Example:

DbCopy (5,'c:\temp\firstfile.txt','c:\temp\copiedfile.txt')

Exceptions:

This function is not supported for Web Service databases.

See also:

The Online and Rich Client Samples projects (program SQ09 and RSQ09)

Reference
Attachment 
Attachment