Something is not right here. Can you post all your combo class code? What if you comment NumberOfElements line?
>>>this.ListIndex = 1
>Tried that ;
>
>IF THIS.Value=0
> THIS.ListIndex=1
>ENDIF
>
>I get a C00005 error!
>
>>>BTW what object is THIS.? Combo itself or something else?
>Yes everything is contained within the combobox.
>The init() event calls a loadcombo() method with fills the array from a look up table, sorts and sets .NumberOfElements
>
>I have about 6 different combos with the same problem.
>
>
>Gary.
If it's not broken, fix it until it is.
My Blog