Hi,
Using VFP9sp2 and the fixes, I've struggled for years for an elegant solution for combo boxes. The behavior I've used before works but is kluggy and way too many steps. Maybe someone can steer me toward an elegant solution. I suspect it to be a common usage use.
Lets say we have 2 tables, Invoices and PayTypes, where Invoices has a field that contains the pay type used for that particular invoice. The PayTypes table contains a list of available pay types such as visa, cash, net30, m/c and amex.
Now, on the Transaction data entry form I need the combobox's displayvalue to shows the value saved for that particular invoice. The displayvalue will change as you skip about the Invoice table's records.
Now, when clicking the combobox, it should show the list of available types populated from the PayTypes table with the saved Invoice's selection already selected, therefore by pressing enter it would not change anything, however if you select any other type in the list, the combo would close and save that selection to the Invoice and show it in the displayvalue.
To get this functionality, what pems and their settings is required. I've fought this on and off for years now and have really never found a proper and simple solution. Please be specific as possible...
Thanks,
Stanley
Using VFP9sp2 and the fixes, I've struggled for years for an elegant solution for combo boxes. The behavior I've used before works but is kluggy and way too many steps. Maybe someone can steer me toward an elegant solution. I suspect it to be a common usage use.
Lets say we have 2 tables, Invoices and PayTypes, where Invoices has a field that contains the pay type used for that particular invoice. The PayTypes table contains a list of available pay types such as visa, cash, net30, m/c and amex.
Now, on the Transaction data entry form I need the combobox's displayvalue to shows the value saved for that particular invoice. The displayvalue will change as you skip about the Invoice table's records.
Now, when clicking the combobox, it should show the list of available types populated from the PayTypes table with the saved Invoice's selection already selected, therefore by pressing enter it would not change anything, however if you select any other type in the list, the combo would close and save that selection to the Invoice and show it in the displayvalue.
To get this functionality, what pems and their settings is required. I've fought this on and off for years now and have really never found a proper and simple solution. Please be specific as possible...
Thanks,
Stanley