Description

Defines a database, using all currently attached tables.

Syntax

Define_Database(database, overwriteflag, tablelist, removeflag)

Parameters

The Define_Database subroutine has the following parameters.

ParameterDescription
DatabaseName for the database. The database can contain upper case alphabetic characters, digits, or the underscore ( _ ) character.
OverwriteflagIf a database definition exists with the same name as the database, the overwriteflag determines whether that database definition will be overwritten with the new definition. The default ("" or 0) is to not overwrite. You must pass 1 to overwrite.
TablelistPasses null. If null not passed, goes to debugger.
removeflagPasses null. If null not passed, goes to debugger.

See also

Create_UserSave_EnvSet_Env

Example

* The last two parameters should be passed as null.
declare subroutine Set_Status, Define_Database
declare function Get_Status
$insert Logical
Set_Status(FALSE$)
Define_Database(@dbid, TRUE$, "", "")
if Get_Status(Error) then
Set_Status(FALSE$)
* handle the error here
end
  • No labels