Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Picture field in a form
Message
 
To
13/01/2012 09:54:12
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01532874
Message ID:
01532876
Views:
47
>>I create a form with all my students information without any problem, later I add a general field so that I can insert their picture.
>>I was able to insert their picture through the form but in the olepicutre is only display a icon and not the picture of the student.
>> what I did wrong or what can I do to show the picture of the student in the ole
>>Thank you
>
>Rule #1: Never, absolutely NEVER use a general field
>Rule #2: If you need to use a general field, see rule #1.
>
>Instead you save the pictures as separate files, and only store the file name in the table, with or without the path. Optionally you use the new blob field type to store the picture, and use the Pictureval property of the image control.

If you want to use BLOB see Rule #1 :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform