Hi Everyone,
I have been having a really difficult time making the transition from FoxPro 2.6 DOS to Visual FoxPro. It seems so difficult for me to understand classes, foundations, events, methods, procedures, containers etc. However, I am committed this year to learn to program in Visual FoxPro 9 as my legacy Inventory, Point-Of-Sale, Accounting bundled software that I wrote in FoxPro 2.6 DOS some seventeen years ago (even though still working and being used extensively) is encountering a lot of difficulties and having to use many work arounds.
One particular part of the software I wrote was a real-time ordering system for salespersons who travel with a laptop to use. A screen would come up with the item number, description, price etc. and most importantly a PICTURE (PHOTO). You could click on Prev | Next | Find | Top | Bottom to scroll through the entire table displaying one item and its associated photo at a time. The bottom quarter of the screen would have a browse grid where the items could be added to the customers order while viewing the picture and relevant data. The database table has a CHARACTER field that dennotes the location of the JPEG file and if there was a photo present, an external Image Viewer was called to display the picture.
I exported the same table to Visual FoxPro 9 and tried using the Form Wizard to create a simple form (at first) that would mimic what I coded in DOS. Somehow, I just can't get the PHOTO to be displayed at all. I tried using a IMAGE control on the form but have no clue how to call the photo as I tried putting the FIELD NAME from the table as the PICTUREVAL data. That didn't work. Tried replacing it with a OLE Bound Object and putting the FIELD NAME as the ControlSource but that did NOT work either.
I can imagine how funny this question must be to many of you but as I said before I am having great difficulties learning VFP 9. Would you be kind enough when responding to tell me specifically where to put FIELD NAME or variable or whatever is needed to get this to work. Do I need to write some code in the INIT or GotFocus Events?? As I said before, the actual PHOTOS are NOT embedded in the table. The table ONLY contains a field that references the location of the JPEG file. I just need to figure out how to let the VFP 9 form know how to use this information from the field to display the photo. Any help would be greatly appreciated. I guess if I can get that part to work, then the next step would be to place the grid on the form to take the actual order.
P.S. I tried searching the previous posts and FAQ sections already and just can't seem to find how to do it.
Greatly appreciate whatever help or advice you have to offer.
Sincerely,
ProScoop
I have been having a really difficult time making the transition from FoxPro 2.6 DOS to Visual FoxPro. It seems so difficult for me to understand classes, foundations, events, methods, procedures, containers etc. However, I am committed this year to learn to program in Visual FoxPro 9 as my legacy Inventory, Point-Of-Sale, Accounting bundled software that I wrote in FoxPro 2.6 DOS some seventeen years ago (even though still working and being used extensively) is encountering a lot of difficulties and having to use many work arounds.
One particular part of the software I wrote was a real-time ordering system for salespersons who travel with a laptop to use. A screen would come up with the item number, description, price etc. and most importantly a PICTURE (PHOTO). You could click on Prev | Next | Find | Top | Bottom to scroll through the entire table displaying one item and its associated photo at a time. The bottom quarter of the screen would have a browse grid where the items could be added to the customers order while viewing the picture and relevant data. The database table has a CHARACTER field that dennotes the location of the JPEG file and if there was a photo present, an external Image Viewer was called to display the picture.
I exported the same table to Visual FoxPro 9 and tried using the Form Wizard to create a simple form (at first) that would mimic what I coded in DOS. Somehow, I just can't get the PHOTO to be displayed at all. I tried using a IMAGE control on the form but have no clue how to call the photo as I tried putting the FIELD NAME from the table as the PICTUREVAL data. That didn't work. Tried replacing it with a OLE Bound Object and putting the FIELD NAME as the ControlSource but that did NOT work either.
I can imagine how funny this question must be to many of you but as I said before I am having great difficulties learning VFP 9. Would you be kind enough when responding to tell me specifically where to put FIELD NAME or variable or whatever is needed to get this to work. Do I need to write some code in the INIT or GotFocus Events?? As I said before, the actual PHOTOS are NOT embedded in the table. The table ONLY contains a field that references the location of the JPEG file. I just need to figure out how to let the VFP 9 form know how to use this information from the field to display the photo. Any help would be greatly appreciated. I guess if I can get that part to work, then the next step would be to place the grid on the form to take the actual order.
P.S. I tried searching the previous posts and FAQ sections already and just can't seem to find how to do it.
Greatly appreciate whatever help or advice you have to offer.
Sincerely,
ProScoop