BBC.SHARED.JOBI.GET-SETTINGS

Summary

Object type
JOBI
Object Folder
PACKAGES/BEST-BLU/BBC.SHARED/SOURCE/DATA
Title
read a static variable and creates a process from it
Archive Key 1
-
Archive Key 2
-
Created
WRITER/B4A am: 2022-03-24 08:00:39
Last Modified
WRITER/B4A am: 2022-07-01 19:11:52 11 x
Last Used
-

Description

Reads a static variable and creates a process from its values

Parameter

$VARIABLE$
object name oif the static variable to read

Input

Output

&BBCS_VARIABLE_O#
object name of the static variable
&BBCS_SETTINGS_O#
process contaiing the entries of the variable

Example

:includeBBC.SHARED.JOBI.GET-SETTINGS $VARIABLE$ = "B4A.PM.VARA.SETTINGS"

Process

:set &BBCS_VARIABLE_O# = "$VARIABLE$"

:set &hnd# = create_process( NEW )
:set &ret# = put_process_line( &hnd#, "Key;Value1;Value2;Value3;Value4;Value5", ";" )
:set &vara_hnd# = prep_process_var( &BBCS_VARIABLE_O# )
:process &vara_hnd#
:  set &key# = get_process_line( &vara_hnd#, 1 )
:  set &v1# = get_process_line( &vara_hnd#, 2 )
:  set &v1# = resolve_var( "&v1#" )
:  set &v2# = get_process_line( &vara_hnd#, 3 )
:  set &v2# = resolve_var( "&v2#" )
:  set &v3# = get_process_line( &vara_hnd#, 4 )
:  set &v3# = resolve_var( "&v3#" )
:  set &v4# = get_process_line( &vara_hnd#, 5 )
:  set &v4# = resolve_var( "&v4#" )
:  set &v5# = get_process_line( &vara_hnd#, 6 )
:  set &v5# = resolve_var( "&v5#" )
:  set &ret# = put_process_line( &hnd#, "&key#;&v1#;&v2#;&v3#;&v4#;&v5#", ";" )
:endprocess
:close_process &vara_hnd#

:set &BBCS_SETTINGS_O# = save_process( &hnd# )

:close_process &hnd#


:publish &BBCS_SETTINGS_O#, , TOP

Variable Publications

Found 1 potentially dangerous variable publications (TOP)

Zeilennummer Scriptzeile
27 :publish &BBCS_SETTINGS_O#, , TOP