>Thanks a lot, but i forgot to mention that i'm running VFP5...
Unfortunately, the COMPILE command is not available prior to VFP6, SP3. It was listed in the "excluded" commands - commands which were restricted, on purpose, to be used by the developer only.
You can still execute single commands, with macro substitution - but I think you need more than that.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)