Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with the photos
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00873510
Message ID:
00873690
Views:
11
This message has been marked as the solution to the initial question of the thread.
>I´m sorry my english is very poor and it is by which perhaps does not express to me correctly, you suggest to me does not use a general field and that presents/displays the photo through its direction in a field memo, but, although like putting the direction in this field not like (in which object image or another one) to present/display the photo in the screen, and so that property I rescue this direction in the object.

In case you want to store only the picture file path in memo field you should use the Image control on your form. When your refresh it you can set its .Picture property to your picture file fullpath name from the memo field.

If you have the Tasmanian Traders sample VFP project from VFP6 or VFP7 you can see this way implemented in Employee form.

Here is the code from Employee form .Refreshform method:
LOCAL lcFile
IF FILE(employee.photo_file)
	lcFile = employee.photo_file
ELSE
	lcFile = ''
ENDIF
this.pageframe1.page3.imgPhoto.Picture = lcFile
tsBaseForm::RefreshForm()
employee.photo_file memo field contains the path for the picture file, for example the relative path could be:
bitmaps\employee1.bmp
The file names could be stored in a character field, but in general it is better to use the Memo field, as it is possible that with the long folder names the file path may exceed 255 characters.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform