>Thanks for the lead below is what I want to do
>
>Am writing a program on VFP that capture student particulars. I have already write the program but they want the program to have the picture of the student. On the search/report, when a student name is entered, the system should display the particulars of the student and the picture of the student.
>
>For now the program can display the particulars of the student but I do not know how to capture image on my data entering form like the field type to use and when I click on the ADD button, I should be able to copy the photo from the directory that the photos are saved.
Field type: character, or memo. The field will only hold the filename.
Add button: I don't know how to automate all this from Visual FoxPro. I had the users copy the images (photos of shoes, in our case) into a specific directory. Then, in VFP, I used getfile() to ask the user for the filename. (getpict() is also available, but I had trouble with this.) This is when the user presses on a button to select a file; all the steps before that are outside the control of the Visual FoxPro program.
My users did this with a digital camera, I suppose. Or sometimes with a scanner (some pictures were drawn with a pencil).
As I am saying, this is outside of the control of my application. So, I don't know how to automate all this from Visual FoxPro; whatever program you use to capture the images, if it is directly connected to the computer (as opposed to a digital camera that is not always atatched to the computer), like a WebCam, one possibility would be to see if it accepts command-line parameters. This may make it possible to give a command like, capture an image and save it to a certain file. Another possibility would be if the program that controls your WebCam, or whatever, exposes an API. This might give you more control, but it is also more difficult to handle. In any case, you would have to check the documentation for the WebCam.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)