Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to display pictures from within a VFP database
Message
De
16/11/2004 03:43:14
 
 
À
15/11/2004 21:08:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Divers
Thread ID:
00961589
Message ID:
00961629
Vues:
4
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform