Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Photographs in a database
Message
From
20/08/2002 14:23:34
 
 
To
20/08/2002 14:12:38
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00691548
Message ID:
00691596
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform