>You should use:
>if cbo.listcount > 0 then cbo.text = cbo.list(0)
>
>I made some test and listcount is giving me 0 if there is nothing in the list (VB6 SP4).
Thanks Eric, I goofed. I populate the list form the contents of an array and it had a single element with "" in it.
Is is possible to redim an array to not have any elements?
Roi
'MCP' Visual FoxPro
In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!