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
- Andreas Büsching am: 2020-11-17 07:46:05
- Last Modified
- Timon Schnakenberg am: 2022-02-16 15:00:28 15 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
-
: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