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.
Array Browsing using TwBrowse (Standard)
-
- Posts: 115
- Joined: Mon Oct 17, 2005 4:42 am
- Location: India
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Array Browsing using TwBrowse (Standard)
Use ASize() after ADel() to truncate the array.
EMG
EMG
-
- Posts: 115
- Joined: Mon Oct 17, 2005 4:42 am
- Location: India
Re: Array Browsing using TwBrowse (Standard)
Dear Enrico,
Yes it does solve the problem. Thanks.
Milan.
Yes it does solve the problem. Thanks.
Milan.
EnricoMaria wrote:Use ASize() after ADel() to truncate the array.
EMG