Vely logo install | documentation | examples | changelog
16.10.0 released May 10, 2023
get-app

Purpose: Obtain data that describes the application.

get-app \
    name | directory | trace-directory | file-directory \
        | db-vendor <database configuration> | upload-size \
        | path | process-data \
    to [ define ] <variable>

Application-related variables can be obtained with get-app statement. The following application variables can be obtained (they are all strings except upload-size):
Note that all the string values above (except "process-data") should be treated as constants - do not change them as that may cause program to malfunction. If you want to alter any of these values, make a copy first (see copy-string).
Examples
Get the name of Vely application:
get-app name to define appname

Get the vendor of database db:
get-app db-vendor db to define dbv
if (!strcmp (dbv, VV_POSTGRES)) {
    // do something Postgres specific
}

See also
Application information ( get-app   set-app  )  SEE ALL (documentation)


Copyright (c) 2017-2023 Dasoftver LLC