Page 1 of 1

Array Browsing using TwBrowse (Standard)

Posted: Fri Nov 18, 2005 6:51 am
by Milan Mehta
Hello All,

I am developing a multi selection using two TwBrowse list box with add and remove buttons. One listbox working on table and other working on an array (containing selected items).

The problem is when user presses Remove button, I delete an element from array using ADEL. As a result the last element of array becomes NIL and TwBrowse gives error.

Is there any workaround ?

TIA
Milan.

Re: Array Browsing using TwBrowse (Standard)

Posted: Fri Nov 18, 2005 7:53 am
by Enrico Maria Giordano
Use ASize() after ADel() to truncate the array.

EMG

Re: Array Browsing using TwBrowse (Standard)

Posted: Fri Nov 18, 2005 9:27 am
by Milan Mehta
Dear Enrico,

Yes it does solve the problem. Thanks.

Milan.
EnricoMaria wrote:Use ASize() after ADel() to truncate the array.

EMG