>>>>have you tried the code i gave ?
>>>>i confirmed you it works as expected on my vfp9sp2.
>>>
>>>See the attachment.
>>
>>Have you tried more than one project? If so, try to restart your computer.
>
>It occurs to all projects, but only in vfp9.
>
>A restart is done every day. It was two days ago, yesterday and today again.
>
>I also checked the fresh resource file.
perhaps you can try _vfp.Projects(1).Files.Count
Christian Isberner
Software Consultant