erase testxx.pj? CREATE PROJECT testxx nowait TEXT TO lcText NOSHOW set collate to 'hungary' MESSAGEBOX('test') endtext DELETE FILE testxx.prg StrToFile('codepage = 1250','config.fpx') ?STRTOFILE(lcText,'testxx.prg',0) _vfp.ActiveProject.files.add('testxx.prg') ?_vfp.ActiveProject.Build('testxx.exe',) _vfp.ActiveProject.close lcRuncmd ="! /n "+SET("Default")+CURDIR()+'testxx.exe -cconfig.fpx' &lcRuncmd returnIf you change the StrToFile() line to
StrToFile('* codepage = 1250','config.fpx')it gives the error you describe.