Page 1 of 1

Combobox error.

Posted: Thu Mar 08, 2018 1:06 pm
by omni
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

Re: Combobox error.

Posted: Thu Mar 08, 2018 3:50 pm
by rdonnay
I don't know what you mean when you say you changed the 9 to 4.

I don't see anything in the array that is a number 9. Do you mean 90?

Re: Combobox error.

Posted: Thu Mar 08, 2018 9:38 pm
by Eugene Lutsenko
.

Re: Combobox error.

Posted: Fri Mar 09, 2018 7:05 am
by omni
Roger,


Forget I ever opened this question.

The array was already used and I missed it.

1*&$^@#*$#@*$!!!

Fred