B4A.BASE.JOBI.CONFIG-ADD
Description
Details
Property | Value |
---|---|
Type | JOBI |
Folder | PACKAGES/BEST4AUTOMIC/B4A.BASE/SOURCE/CONFIGURATION |
Title | Add entry to module configuration VARA |
Archive Key 1 | - |
Archive Key 2 | - |
Created | WRITER/B4A am: 2019-10-18 10:35:00 |
Last Modified | Andreas Büsching am: 2024-01-03 17:08:02 33 x |
Last Used | - |
Process
:set &item# = "$ENTRY$"
:switch &$PLATFORM#
: case "UNIX"
:set &item# = resolve_var( &item# )
! create a string like this '"'"'
:set "ed# = "'"
:set "ed# = str_cat( "ed#, '"' )
:set "ed# = str_cat( "ed#, "'" )
:set "ed# = str_cat( "ed#, '"' )
:set "ed# = str_cat( "ed#, "'" )
:set &item# = str_sub( &item#, "'", "ed# )
echo '&item#' >> $b4a_config_file
: case "WINDOWS"
: inc BBC.SHARED.JOBI.ESCAPE4POWERSHELL $STRING$ = "&item#"
"&BBCS_ESCAPED_STRING_O#" | Add-Content $b4a_config_file.fullName
:endswitch