Skip to content

DB_FILE_LIST

DB_FILE_LIST returns a list of all DB files in the current application library as a string with '**' as separator (because files may contain spaces).

Syntax

leo-grammar
CC "AdoScript" DB_FILE_LIST .

#--> RESULT ecode:intValue files:strValue
CC "AdoScript" DB_FILE_LIST .

#--> RESULT ecode:intValue files:strValue

Parameters

none

Returns

  • ecode (intValue) - has the value 0 if no error occurred, a value different than 0 if an error occurred.
  • files (strValue) - a list of files separated by "**"

Details

See Also

Examples

asc
CC "AdoScript" DB_FILE_LIST
IF (ecode != 0)
{
  CC "AdoScript" INFOBOX ("An error occured")
  EXIT
}
SET dbFiles:(replall(files,"**","\n"))
CC "AdoScript" INFOBOX ("All DB-Files:\n" + dbFiles)
CC "AdoScript" DB_FILE_LIST
IF (ecode != 0)
{
  CC "AdoScript" INFOBOX ("An error occured")
  EXIT
}
SET dbFiles:(replall(files,"**","\n"))
CC "AdoScript" INFOBOX ("All DB-Files:\n" + dbFiles)

Displays all DB-files in a infobox. Each file in a line.

Versions and Changes

Available since ADOxx 1.3