Hi Bob,
Whenever you want to view a new picture, you strtofile() to a new random file. The image control will always refresh when you change the source (picture=mynewrandomfile).
>I see where you are going...but here's my problem. I'm now using the path in a database field to point to the picture, but when the user selects the picture file it doesn't refresh until you exit and restart the form.
>
>The Image control doesn't have a refresh event. So how do you get the picture to refresh right away. I've tried clearing resources, but that doesn't work, any ideas?
>
>Bob
>
>
>>Bob, I don't think you can View the image straight from the field. I believe you have to use the STRTOFILE() function to cache to disk. with the general field you also run into viewer issues with .ocx versions. What has always worked best for me with vfp is created a directory for "media" files inside my database home directory and copying the images to it. Then I insert the path into a character field. It works better for me than using the memo or general field by alleviating memo bloat and keeping your table size down.