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
AVAL fontsize:"Font size"

IF (sType = "Big sign") {

    FILL style:null transparent

    PEN style:dash

    RECTANGLE x:(tabx0+0.2cm) y:(taby0+0.5cm) w:(tabw1-0.4cm) h:(tabh1-2cm)

    FONT h:(PT fontsize)

    ATTR "Text" x:(tabx0+0.3cm) y:(taby0+0.6cm) w:l:(tabw1-0.6cm) h:t:(tabh1-2cm)

}
AVAL fontsize:"Font size"

IF (sType = "Big sign") {

    FILL style:null transparent

    PEN style:dash

    RECTANGLE x:(tabx0+0.2cm) y:(taby0+0.5cm) w:(tabw1-0.4cm) h:(tabh1-2cm)

    FONT h:(PT fontsize)

    ATTR "Text" x:(tabx0+0.3cm) y:(taby0+0.6cm) w:l:(tabw1-0.6cm) h:t:(tabh1-2cm)

}

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