DATABASEEXISTS()
From Lianjapedia
Contents
Purpose
Function to check whether database exists
Syntax
DATABASEEXISTS(<expC>)
See Also
CLOSE DATABASES, COLUMNEXISTS(), CREATE DATABASE, DATABASE(), DBC(), DBF(), FILE(), OPEN DATABASE, TABLEEXISTS(), USE, USED()
Description
The DATABASEEXISTS() function returns .T. if the database name specified in <expC> exists and .F. otherwise.
Example
if databaseexists("lianja") open database lianja else create database lianja endif