Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DBF general field & jpg
Message
 
À
03/06/1999 15:23:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00223642
Message ID:
00226263
Vues:
20
Peter,

If you are using VFP 6.0 then use the Image control on the form and then you can either point to the file name of the JPEG file directly or you can store the JPEG images into a MEMO field and not a GENERAL field. Depending on compression and the type of digital camera you are using your images could be quite large. My Kodak DC260 can get as large as 900K per image but is typically about 300K - 650K. If the images are small you can write code into the Image control to take the Memo field and use the StrToFile() method to write the Memo field binary data to a temporary file and then set the Image's Picture property to the Temporary File. Clean up the Temporary file when you are done if you want.

I wrote a quick VFP viewer at my Wedding Reception in February to display all of the digital photos to the guests on my notebook at the head table right after the wedding. I almost got into trouble with the new wife for coding at the head table while we were eating. But once she saw the program running in under 5 minutes it was OK! :-)

This program simply used ADIR() to pull all of the JPEG file names into an array for a particular folder and then simply used a timer control to continuously change the Image's Picture property to the next file name and Refresh the form.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform