>>>>>>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.
All I did was re-build the application using VFP 9. The JPG and TIF files do not display their contents. The show the filename.extension for JPG files and a picture of a scanner and filename.tif. Yes the TIF was scan. In fact the user will scan in all of the files to be entered into the table.