FWH - Listbox compatible with FW 2.4 & Clipper 5.2

FWH - Listbox compatible with FW 2.4 & Clipper 5.2

Postby paulrhanson » Wed Jan 28, 2009 3:49 am

I am using the following code with clipper 5.2 and FW
Code: Select all  Expand view
   @ 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:
Code: Select all  Expand view
@ 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:
Code: Select all  Expand view
      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
paulrhanson
 
Posts: 13
Joined: Fri Sep 12, 2008 2:40 am

Re: FWH - Listbox compatible with FW 2.4 & Clipper 5.2

Postby Antonio Linares » Wed Jan 28, 2009 2:20 pm

Paul,

Please try it this way:
Code: Select all  Expand view
   @ 0,0 listbox aObject[AO_JOURNALLIST] fields "" headers 'Journal' alias 'ARRAY' pixel
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

Re: FWH - Listbox compatible with FW 2.4 & Clipper 5.2

Postby paulrhanson » Wed Jan 28, 2009 2: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
paulrhanson
 
Posts: 13
Joined: Fri Sep 12, 2008 2:40 am

Re: FWH - Listbox compatible with FW 2.4 & Clipper 5.2

Postby Antonio Linares » Wed Jan 28, 2009 7:51 pm

Paul,

Glad to know it is working :-)
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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 83 guests