>Hi David,
> Thanks for the tips you sent me. But when I modified the code by including the '@' Visual Foxpro 5 return a syntax error. If I remove the '@' then it is able to compile. Do you know why?
>
Steve,
Because using an @ in the parameters of a DO ... WITH ... command is a syntax error. Parameters are passed by reference with DO ... WITH ... by default. If you want to pass by value then you put parens around the variable name in the WITH ... clause.