>>>>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.
I suspect a VFP COM automation server registration issue, perhaps you can find some clue in Rick Strahl's blog
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/Never explain, never complain (Queen Elizabeth II)