Combobox error.
Posted: Thu Mar 08, 2018 1:06 pm
Roger
We use combo boxes in most of our user entry programs. This is very weird.
Use xbase 2.0, express 262
This causes an error.
aSType9:= {{PADR("15 Days",10),'15'},;
{PADR("30 Days",10),'30'},;
{PADR("60 Days",10),'60'},;
{PADR("90 Days",10),'90'}}
I change the '9' to a '4' and it works. Never seen this before.
Changed it back to 9 and it gives an error again. Just that one line. All other items in prg that relate to this are remarked out..took a while to figure out why the error was occurring so I remarked out all changes to isolate the exact location that cause the error message.
-> VALTYPE: O CLASS: DC_XbpComboBox
-> VALTYPE: A VALUE: {"15 Days ", "15"}
oError:description : Parameter has a wrong data type
oError:filename :
oError:genCode : 2
oError:operation : :addItem
CALLSTACK:
Called from XBPLISTBOX:ADDITEM(1304)
Called from DC_XBPCOMBOBOX:CREATE(1395)
Funny, I have lots of programs using aSType9:=. Thought you may enlighten me on that line in the create/additem that would cause that.
No big deal as I got it to work. Maybe the numbers as part of the description?
Fred
Omni
We use combo boxes in most of our user entry programs. This is very weird.
Use xbase 2.0, express 262
This causes an error.
aSType9:= {{PADR("15 Days",10),'15'},;
{PADR("30 Days",10),'30'},;
{PADR("60 Days",10),'60'},;
{PADR("90 Days",10),'90'}}
I change the '9' to a '4' and it works. Never seen this before.
Changed it back to 9 and it gives an error again. Just that one line. All other items in prg that relate to this are remarked out..took a while to figure out why the error was occurring so I remarked out all changes to isolate the exact location that cause the error message.
-> VALTYPE: O CLASS: DC_XbpComboBox
-> VALTYPE: A VALUE: {"15 Days ", "15"}
oError:description : Parameter has a wrong data type
oError:filename :
oError:genCode : 2
oError:operation : :addItem
CALLSTACK:
Called from XBPLISTBOX:ADDITEM(1304)
Called from DC_XBPCOMBOBOX:CREATE(1395)
Funny, I have lots of programs using aSType9:=. Thought you may enlighten me on that line in the create/additem that would cause that.
No big deal as I got it to work. Maybe the numbers as part of the description?
Fred
Omni