B4A.BASE.JOBI.CONFIG-ADD-VARA

Summary

Object type
JOBI
Object Folder
PACKAGES/BEST4AUTOMIC/B4A.BASE/SOURCE/CONFIGURATION
Title
Add an entry to module configuration with a file generated from a variable
Archive Key 1
-
Archive Key 2
-
Created
Andreas Büsching am: 2020-11-16 18:15:42
Last Modified
Timon Schnakenberg am: 2022-02-16 15:00:36 14 x
Last Used
-

Description

The include adds a configuration entry for a option that takes a filename as its value.

Parameter

$PARAM1$
description of the parameter

Input

&BBCX_VARIABLE_I#
description of the variable

Output

&BBCX_VARIABLE_O#
object name ended for usage in URLs

Example

    :include B4A.BASE.JOBI.CONFIG_ADD_VARA $ENTRY$ = "option"

Process

:set &item# = "$ENTRY$"
:set &item# = resolve_var( &item# )
:switch &$PLATFORM#
:  case "UNIX"
echo "&item#=$bbcs_vara_file" >> $b4a_config_file
:  case "WINDOWS"
"&item#=$bbcs_vara_file" | Add-Content $b4a_config_file.fullName
:endswitch