# ESB_VARIABLE_T

ESB_VARIABLE_T is the primary substitution variable datatype. It identifies the substitution variable's value and name, as well as the Esbbase database, application, and server where the variable is defined.

The Server name is optional, but recommended. If not included, the current server is the default. The AppName is optional. The DbName is optional, but if it exists, then the AppName member is required. The VarName is required. The VarValue is required.

    Type ESB_VARIABLE_T

        Server      As String * ESB_SVRNAMELEN
        AppName     As String * ESB_APPNAMELEN
        DbName      As String * ESB_DBNAMELEN
        VarName     As String * ESB_MBRNAMELEN
        VarValue    As String * ESB_VARVALUELEN

    End Type

Data Type | Field | Description
ESB_SVRNAME_T | Server | Name of server where variable is defined (optional)
ESB_APPNAME_T | AppName | Name of application to restrict variable to
ESB_DBNAME_T | DbName | Name of database to restrict variable to. If used, it requires that application be set.
ESB_MBRNAME_T | VarName | Name of substitution variable.
ESB_CHAR_T | VarValue[256] | Value of substitution variable.