>Nadya,
>
>Thanks a lot. You just made my life a lot easier. I appreciate your help.
>This exactly what I was looking for.
>
>Thanks again
I should warn you: this code is working fine in development environment. However, there is a little licensing problem with run-time versions. So, you have to create a form, place this control on the form, and save this form as a class. Then you can use almost the same code. I never did it in our case, because we're running our software inside the office and each machine has full VFP version installed.
If it's not broken, fix it until it is.
My Blog