DATABASEEXISTS()

From Lianjapedia
Revision as of 12:13, 4 February 2013 by Yvonne.milne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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