Question about TWBROWSE

Question about TWBROWSE

Postby driessen » Fri Sep 26, 2008 1:30 pm

Hello,

Is there anyone who can tell me how I can prevent that oLbx:nAt is bigger the the length of the array?

If I have a listbox on my screen and I am focused on the last line, I get an bound array error I perform a function in background which shortens my array. How can this error be prevented ?

To Antonio, is it possible to do this control in the TWBROWSE class ?

Thanks a lot in advance.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Postby James Bott » Fri Sep 26, 2008 1:55 pm

Michel,

Have you tried just doing a oLbx:skip( -1 )?

Regards,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Antonio Linares » Fri Sep 26, 2008 1:59 pm

Michel,

> I get an bound array error I perform a function in background which shortens my array

Please post the error.log calls stack here, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby driessen » Sat Sep 27, 2008 1:18 pm

Antonio,

Here is the error.log, concerning my problem.

(You'll notice I changed ERRSYSW.PRG a little bit to my needs)

Code: Select all  Expand view
Applicatie
==========

   Pad en naam           : C:\JUDAZOE\JUDA_2.EXE
   Grootte               : 6,220,288 bytes (32 bits)
   Tijd sedert opstarten : 0 hours 0 mins 25 secs
   Tijdstip foutmelding  : 29/05/2008, 09:00:14
   Omschr. foutmelding   : Error BASE/1132  Bound error: array access

   Gebruiker             : SZCZUBIALA Zoë

   Argument :

     [   1] = A   { ... }
     [   2] = N   { ... }

Opgeroepen in :
===============

BEHPRARC => (b)TOONPREST(1300)
WINDOW => TDIALOG:AEVALWHEN(0)
BEHPRARC => (b)TOONPREST(1229)
Z-WBROWS => TWBROWSE:UPSTABLE(1828)
BEHPRARC => TAFSLUIT(6260)
BEHPRARC => (b)TOONPREST(1319)
BUTTON => TBUTTON:CLICK(0)
CONTROL => TBUTTON:HANDLEEVENT(0)
WINDOW => _FWH(0)
SENDMESSAGE(0)
DIALOG => TDIALOG:COMMAND(0)
TWINDOW:HANDLEEVENT(0)
DIALOG => TDIALOG:HANDLEEVENT(0)
DIALOGBOX(0)
DIALOG => TDIALOG:ACTIVATE(0)
BEHPRARC => TOONPREST(1330)
FGEGTL2 => (b)BUILDBAR1(2410)
BTNBMP => TBTNBMP:CLICK(0)
BTNBMP => TBTNBMP:LBUTTONUP(0)
TWINDOW:HANDLEEVENT(0)
CONTROL => TCONTROL:HANDLEEVENT(0)
BTNBMP => TBTNBMP:HANDLEEVENT(0)
WINDOW => _FWH(0)
WINRUN(0)
WINDOW => TWINDOW:ACTIVATE(0)
JUDA => MAIN(516)


Thanks a lot.

Have a nice weekend.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

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