Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding graphics files to a table
Message
From
20/03/2007 12:18:20
 
 
To
20/03/2007 12:09:33
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
01206066
Message ID:
01206128
Views:
25
>>>>>VFP 8 to VFP 9 upgrade
>>>>>
>>>>>I have a program which uses the GETPICT command to get pictures to show list of graphics files in a folder. It is suppose to link to the file using APPEND GENERAL ... LINK. The only time I see a picture is when the file has an extension of BMP. The user would also like to see the contents of other graphic files. For example if they choose a file with an extension of jpg instead of a picture the get filename.jpg. The commands the program are using are
>>>>>
>>>>>lcPictureFile = GETPICT('','','Select Picture')
>>>>>
and
>>>>>Append General picture From (lcPictureFile) Link
>>>>><pre>It also has the command<pre>
>>>>>Append General picture From (lcPictureFile) Link
>>>>>
>>>>>I do not understand what picture does since it is not in the help file.
>>>>>
>>>>>Is there a way of doing what the user wants?
>>>>
>>>>It seems that 'picture' is the name of your general field. I think that keeping files separately, if you can, will work better.
>>>
>>>I found that "picture" is the name of the general field in the table. How would I keep the files separate? FWIW the following commands
>>>
>>>This.Parent.cmdNoPicture.Visible = .T.	
>>>This.Parent.edbPictureFile.Value = lcPictureFile
>>>This.Parent.edbPictureFile.Refresh()
>>>
>>>How do I find out what the refer to?
>>
>>You could keep file name, make sure it is unique, in the table, and use Image or some fancy Active-X control to show the file.
>
>I thought that the GETPICK command would keep the file names unique. The worst that should happen is that the same file get relinked. My problem is how do I display non-BMP files such as JPEG or TIFF files.
>
>I assume the reason the program is using the link parameter is to save space.

Image control should show your files with no problem.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform