Skip to content

listDatabases

MicroBlaster edited this page Jul 9, 2020 · 2 revisions

Purpose: Returns a list of all databases.

Syntax: listDatabases {Array}

Array: The array to hold the list of databases.

**Notes: A variable matching the name of the array will be created to hold the count and size of the array. So if you named the array $array, then $array will equal the number of active scripts, $array[1] will be the name of the first script, $array[2] the second, and so on.

Example:

# Clear all databases - use with caution - all data will be deleted!
listDatabases $db
setVar $a 1
while ($a <= $db)
	deleteDatabase $db[$a] ScriptData
	add $a 1
end

Clone this wiki locally