Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Photographs in a database
Message
De
20/08/2002 14:23:34
 
 
À
20/08/2002 14:12:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00691548
Message ID:
00691596
Vues:
15
Linda,

>Thanx Steve. Your answer makes sense from the file management angle, but I need to know how to display the image on a form. I won't be using them in very many reports.

Drop the image control on a form. When the customer navigates to a record, do something like this:
lcPicFile = oApp.photoPath + table1.picFile
if file(lcPicFile)
	thisForm.image1.picture = lcPicFile
else
	thisForm.image1.picture = oApp.noPictureFile
endif
In this example, I have an application object (oApp) that has a property that stores the name of the path for the photos. oApp.noPictureFile stores the name (including full path) of an image I want displayed when the picture does not actually exist on disk.
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform