Tariq,
You really need to spend the time learning how to debug/solve these sorts of specific problems yourself instead of posting back that the sample code someone gave you for free isn't working perfectly inside the rest of your code. In the long run it'll make you a much better VFP developer.
>Dear Sir,
>
>I have tested your modified codes, but it still shows path error as
>
>File 'C:\program filles\microsoft visual foxpro 7\200401.dbf' does not exist.
>
>and debugger stops on the following line
>
> USE (cTable) ALIAS TestTable IN 0
>
>
>Please resolve the path issue.
>
>Thanks Again