TekkamanOmega
New Member
Hello,
I have encountered some strange and annoying behavior with browse cells.
A bit of sample code:
When pFields is filled with for example:
"Firma,Company,Nummer,ReturnID,Klant,Customer,Invoerdatum,EntryDate,Einddatum,DueDate,Factuur,InvoiceNumber"
After it is assigned to the column's LIST-ITEM-PAIRS, the contents of LIST-ITEM-PAIRS are:
"Firma,C,Nummer,R,Klant,C,Invoerdatum,E,Einddatum,D,Factuur,I"
So, the values are changed to the first character of it's string entry. Sometimes they are like this, sometimes it is filled normally.
Can anyone help me with this issue?
Kind regards,
Tekka.
I have encountered some strange and annoying behavior with browse cells.
A bit of sample code:
Code:
CLASS SomeClass:
DEFINE PRIVATE VARIABLE pBrowse AS WIDGET-HANDLE NO-UNDO.
/* More code... */
METHOD PUBLIC VOID setColumn(pBuffer AS HANDLE, pFields AS CHAR):
DEFINE VARIABLE whColumn AS HANDLE NO-UNDO.
ASSIGN whColumn = pBrowse:ADD-LIKE-COLUMN(pBuffer:BUFFER-FIELD("contextNumber"), 0, "COMBO-BOX")
whColumn:READ-ONLY = FALSE
whColumn:WIDTH-PIXELS = pWidth.
whColumn:LIST-ITEM-PAIRS = pFields.
END METHOD.
END CLASS.
When pFields is filled with for example:
"Firma,Company,Nummer,ReturnID,Klant,Customer,Invoerdatum,EntryDate,Einddatum,DueDate,Factuur,InvoiceNumber"
After it is assigned to the column's LIST-ITEM-PAIRS, the contents of LIST-ITEM-PAIRS are:
"Firma,C,Nummer,R,Klant,C,Invoerdatum,E,Einddatum,D,Factuur,I"
So, the values are changed to the first character of it's string entry. Sometimes they are like this, sometimes it is filled normally.
Can anyone help me with this issue?
Kind regards,
Tekka.