B4A.BASE.JOBI.CONFIG-ADD-TEMP

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 given string
Archive Key 1
-
Archive Key 2
-
Created
WRITER/B4A am: 2022-03-24 08:01:43
Last Modified
WRITER/B4A am: 2024-01-09 10:09:57 14 x
Last Used
-

Description

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

Parameter

$ENTRY$
name of the configuration option

Input

Output

Example

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

Process

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