- 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