BOB,
_GENXTAB is a system variable that contains the name of VFPXTAB.prg (in VFP) in your VFP directory (under tools I think). In a distributed app, the file and probably the path doesn't exist. Add the PRG to your project and reference it directly.
>Can anyone tell me why
>
>DO (_GENXTAB) WITH 'PMPMs',,,,,,,,,.t.
>
>works in the command window but gives a 'file not found' error when compiled in my app?