Lasso Soft Inc. > Home

[Database_Exists]

LinkDatabase_Exists
AuthorJohn Burwell
CategoryDatabase
Version8.x
LicensePublic Domain
Posted26 Apr 2006
Updated26 Apr 2006
More by this author...

Description

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.

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.

Define_Tag: 'Database_Exists',
  -Required='Database';
  
  Database_Names;
    If: (Database_NameItem) == #Database;
      Return: TRUE;
    /If;
  /Database_Names;
  
  Return: FALSE;

/Define_Tag;

Related Tags

Comments

No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft