DATABASEEXISTS()
From Lianjapedia
Revision as of 12:13, 4 February 2013 by Yvonne.milne (Talk | contribs)
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