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
- WRITER/B4A am: 2022-03-24 08:01:43
- Last Modified
- WRITER/B4A am: 2024-01-09 10:09:58 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