[Database_Exists]

Description

Link: [Database_Exists]
Author: John Burwell
Category: Database
Version: 8.x
License: Public Domain
Posted: Apr. 26, 2006
Updated: Jan. 01, 0001
More by this author...
Database_Exists accepts one parameter, a -Database string naming a database to find. If the database exists, TRUE is returned. Otherwise, the tag returns FALSE.

Parameters

-Database string, required The name of the database to find

Sample Usage

If: (Database_Exists: 'elusive_db');
  Output: 'The database was found.';
Else;
  Output: 'The database was not found.';
/If;
						

Source Code

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
1
2
3
4
5
6
7
8
9
10
11
12
13
Define_Tag: 'Database_Exists',
  -Required='Database';
  
  Database_Names;
    If: (Database_NameItem) == #Database;
      Return: TRUE;
    /If;
  /Database_Names;
  
  Return: FALSE;

/Define_Tag;

 

Related Tags



Comments

none

Email:


Password:



Newest

Most Popular

Support tagSwap.net