Skip to content

Deleting an array shuffles the array numbers #257

@nickorr

Description

@nickorr

Discussed in #255

Originally posted by argasoft58 October 29, 2025
Hi!
I want to use arrays in some CFs as follows:
let ( [
$i = $i + 1 ;
$array = if ( $i = 1 ;
$array = BE_ArraySetFromValueList ( "1¶2¶3¶4" ) ;
$array ) ;
...some calculations using BE_ArrayGetValue ( $array ; $i )... ] ;
if ( $i + 1 > BE_ArrayGetSize ( $array ) :
let ( [ result = whatIwant ; $calculatedResults = "" ; Be_ArrayDelete ( $array ) ] ; result ) ;
doItagain )
)

Checking if there are still values in $array: there are.
As far as I understand it, $array is a number that's assigned by BE_ArraySetFromValueList.
What is wrong with my thinking?
TIA

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions