LPARAMETER oFoxCode >oFoxcode.Valuetype ="V" >return [_vfp.projects(1).files.add("~")] >>...which will break if you have no project open. Could be checked somewhere between 2nd and 3rd line of this, but I just couldn't be bothered. If I get an error, my fault.