Hi, Tariq.
>I am using VFP6 and your codes does not work in this version.
>Please modfy your codes to work in VFP6.
Hmmm... I guess the things I'm using in these samples could be run in VFP 6, but you should check it. I really can't do that.
In any case, I heartily recommend you to upgrade to VFP 9.0. You are using a version of VFP which is almost 10 years old, and there are lots of bugs that you can find that are solved in the newer ones, not to mention all the new features.
Best regards,