Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to display pictures from within a VFP database
Message
From
15/11/2004 21:08:44
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00961589
Message ID:
00961597
Views:
4
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform