FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FWH - Listbox compatible with FW 2.4 & Clipper 5.2
Posts: 13
Joined: Fri Sep 12, 2008 02:40 AM
FWH - Listbox compatible with FW 2.4 & Clipper 5.2
Posted:
I am using the following code with clipper 5.2 and FW
	@ 0,0 listbox aObject[AO_JOURNALLIST] fields headers 'Journal' alias 'ARRAY' pixel

But I get runtime error when the line is executed.

I use a public arrary, Journal as the data lines of the listbox. Later in the code after the above line, SetArray() method is used to define the array.

I can't locate documentation that tells me how to use FIELDS and HEADERS.

If I change the above code to:
@ 0,0 listbox aObject[AO_JOURNALLIST] fields alias 'ARRAY' pixel


I don't get a runtime error at this point, but later I get an error when the listbox is refreshed from wBrwLine(). It errors at:
      nRight  = Min( nColStart := ( nLeft + aColSizes[ n ] - 1 ), nWidth )


This code all works well with FW and clipper 5.2.

How can I fix this?

Thanks,
Paul
-Paul
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH - Listbox compatible with FW 2.4 & Clipper 5.2
Posted: Wed Jan 28, 2009 02:20 PM
Paul,

Please try it this way:
   @ 0,0 listbox aObject[AO_JOURNALLIST] fields "" headers 'Journal' alias 'ARRAY' pixel
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 13
Joined: Fri Sep 12, 2008 02:40 AM
Re: FWH - Listbox compatible with FW 2.4 & Clipper 5.2
Posted: Wed Jan 28, 2009 02:44 PM

Antonio,

You're the man! Thanks! That did the trick.

I've been battling for weeks. Learned a lot too though.

Thanks again.

GBU,
Paul

-Paul
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH - Listbox compatible with FW 2.4 & Clipper 5.2
Posted: Wed Jan 28, 2009 07:51 PM

Paul,

Glad to know it is working :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion