On Jan 10, 2007, at 12:38 AM, Tom Benson wrote:

I have a need for indexed arrays.. e.g.

array(0) = zero
array(1) = one
array(2) = two
array(3) = three
array(4) = four
array(5) = five

array.remove(3)

array(0) = zero
array(1) = one
array(2) = two
array(3) = four
array(4) = five

So that when I remove an element, the array index collapses back into sequence...

Any ideas??


That's how Remove works, at least in 2006R3 and prior. For example:

  dim MyArray(5) as integer

  Myarray(0) = 0
  Myarray(1) = 1
  Myarray(2) = 2
  Myarray(3) = 3
  Myarray(4) = 4
  Myarray(5) = 5

  Myarray.remove(3)

  break  // the debugger shows the elements as: 0,1,2,4,5

Best,

Jack
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to