Array Browsing using TwBrowse (Standard)

Array Browsing using TwBrowse (Standard)

Postby Milan Mehta » Fri Nov 18, 2005 6: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.
Milan Mehta
 
Posts: 115
Joined: Mon Oct 17, 2005 4:42 am
Location: India

Re: Array Browsing using TwBrowse (Standard)

Postby Enrico Maria Giordano » Fri Nov 18, 2005 7:53 am

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Array Browsing using TwBrowse (Standard)

Postby Milan Mehta » Fri Nov 18, 2005 9:27 am

Dear Enrico,

Yes it does solve the problem. Thanks.

Milan.

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

EMG
Milan Mehta
 
Posts: 115
Joined: Mon Oct 17, 2005 4:42 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 83 guests