Stuart,
>In the jump start windows forms examples you have the Customer orders form
>You have the mmPicker which uses CustomerID to select from orders.
>In the pckCustomers_ItemSelected method there is the line
>this.oOrder.GetOrdersByCustomerID(this.pckCustomer.Text);
>. I want to be able to type in the CompanyName then retrieve the orders by CustomerID, but “this.pckCustomer.Text” will contain the CompanyName,so how do I now get the CustomerID to run my query?
Gotcha (the clouds have parted, the sun is shining <g>)...
I recommend creating a subclass of mmPicker and overridng the PerformSearch() method. You can then replace the parameter values that are sent to the PickListBusinessObject to suit your needs.
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com