With explode() we can fill a list into an indexed array.
I'd need the ability to fill a list with elements like 'name1=value1' into an associative array.
E.g.: the output of SetLayout(, ';')
Result would be like
Explode($Apane[], SetLayout(, ';'), ';', 'a'); // 'a' = create assoc arrayThis would enable us to change a kind of 'Control-List' to a 'Control-Array = Control-Structure' by just 1 command, where after that all values could directly be accessed by e.g.
$p1w = $Apane['Pane1Width'];The same, please, for the opposite direction, for implode().
Would allow for (just one shortened example, hopefully w/o
Code: Select all
Explode($Apane[], SetLayout(, ';'), ';', 'a'); // list2array
$p1w = $Apane['Pane1Width']; // temp store
$Apane['Pane1Width'] = $Apane['Pane2Width']; // exchg
$Apane['Pane2Width'] = $p1w; // exchg other
SetLayout(Implode($Apane, , ';', 'a'), ';'); // fine that implode can *return* it's result :-)
SetLayout($panelist, ';'); // set result (Sorry for the mess of separators - but explode and setlayout use different dflts
XYplorer Beta Club