Thank you Peter...

I have the same code in dbList and dbGrid... and it is pretty involved... with the additional lines it is working as expected so I will leave it alone. We are planing on replacing them with the CJ based clases anyway, so the code will not live there for too long (I hope) it is part of the move to 20.0 which brings a lot of changes and lots of things are broken because I started programming this aplication in 1999 and lots of code is legacy, so maybe another year.

Regards,
Oscar