FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Array Browsing using TwBrowse (Standard)
Posts: 115
Joined: Mon Oct 17, 2005 04:42 AM
Array Browsing using TwBrowse (Standard)
Posted: Fri Nov 18, 2005 06:51 AM

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.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Array Browsing using TwBrowse (Standard)
Posted: Fri Nov 18, 2005 07:53 AM

Use ASize() after ADel() to truncate the array.

EMG

Posts: 115
Joined: Mon Oct 17, 2005 04:42 AM
Re: Array Browsing using TwBrowse (Standard)
Posted: Fri Nov 18, 2005 09:27 AM
Dear Enrico,

Yes it does solve the problem. Thanks.

Milan.

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

EMG

Continue the discussion