Very good day to you all,
Further to my post on Feb. 22, 2009 ("How To Display JPEG Images (Photos) on a VFP 9 Form") for which I am truly thankful for all the help and corrective advice, I have run into another problem. I used the Form Wizard to create all the forms that I am using in the Virtual Product Catalogue and Order Entry System for travelling salespersons and included PICTURE BUTTONS (Buttonset that included cmdFind button for searching/filtering). My problem is that I have also included CUSTOM-MADE Command Buttons on these forms as well that would take the user to another Form that does something else. For example, the first form allows the salesperson to select/scroll/search the customer table to find the correct customer. On that form there is a Command Button titled, "Proceed to Virtual Catalogue & Order Entry". Once it goes to that form the catalogue information is displayed for all the products in the inventory table along with a photo. Once the desired item is found, a Command Button on that form says, "Add Item To Order".
Here is the real question: If I use the `Picture Search Button (cmdFind in the Buttonset)' to locate the desired customer or product, but FORGET to click on that button once again and reset the Filter Condition to "All" (removing the filter that is) BEFORE clicking on any of my Command Buttons (custom written to open another form that does something else), when I press on the Close Button or Exit Form Picture Button on that other form and return is passed back to the form in which the Search/Filter was done the filtered condition is still on that form and THERE IS NO WAY of clicking that button once again to clear the filter condition and reset to ALL (the button is visible but clicking on it does nothing). The ONLY button that works is the Close/Exit Form buttons. I believe that I might have to put a few lines of code in the CLICK event of the Command Button that would reset the filter to "ALL" (remove the filtered condition) before proceeding to the other form. I have tried SET FILTER TO in the CLICK event of the Command Button but that alone does NOT solve the problem.
Can anyone advise me what to do??? Your help would be greatly appreciated as I am just trying to learn VFP 9. All my previous experience is in FoxPro 2.6 for DOS.
Thanking you,
Proscoop (Chris)
Further to my post on Feb. 22, 2009 ("How To Display JPEG Images (Photos) on a VFP 9 Form") for which I am truly thankful for all the help and corrective advice, I have run into another problem. I used the Form Wizard to create all the forms that I am using in the Virtual Product Catalogue and Order Entry System for travelling salespersons and included PICTURE BUTTONS (Buttonset that included cmdFind button for searching/filtering). My problem is that I have also included CUSTOM-MADE Command Buttons on these forms as well that would take the user to another Form that does something else. For example, the first form allows the salesperson to select/scroll/search the customer table to find the correct customer. On that form there is a Command Button titled, "Proceed to Virtual Catalogue & Order Entry". Once it goes to that form the catalogue information is displayed for all the products in the inventory table along with a photo. Once the desired item is found, a Command Button on that form says, "Add Item To Order".
Here is the real question: If I use the `Picture Search Button (cmdFind in the Buttonset)' to locate the desired customer or product, but FORGET to click on that button once again and reset the Filter Condition to "All" (removing the filter that is) BEFORE clicking on any of my Command Buttons (custom written to open another form that does something else), when I press on the Close Button or Exit Form Picture Button on that other form and return is passed back to the form in which the Search/Filter was done the filtered condition is still on that form and THERE IS NO WAY of clicking that button once again to clear the filter condition and reset to ALL (the button is visible but clicking on it does nothing). The ONLY button that works is the Close/Exit Form buttons. I believe that I might have to put a few lines of code in the CLICK event of the Command Button that would reset the filter to "ALL" (remove the filtered condition) before proceeding to the other form. I have tried SET FILTER TO in the CLICK event of the Command Button but that alone does NOT solve the problem.
Can anyone advise me what to do??? Your help would be greatly appreciated as I am just trying to learn VFP 9. All my previous experience is in FoxPro 2.6 for DOS.
Thanking you,
Proscoop (Chris)