On Saturday 08 August 2009 09:31:45 am [email protected] wrote: > What I'm really after is how to piece together an application. We're > longtime VFP programmers, and what I'm trying to figure out is very basic: > how to call one form from another, using your Class Designer. In VFP, the > click method of a button will call another form with "do form FindRun" and > then the FindRun form can process user input and move the pointer in a > cursor or table that's in a grid on the calling form. The find function is > just an example, the approach would be the same for other functions, such > as buttons for "Export Results" or "Revise Status"
Larry and I are doing the same thing (we are VFP'ers). We use a table that contain metadata (maybe the required select statement to retreive the correct data associated with the request). I have a screencast that has a few examples of the find button. But there is no code. I just display a grid with the data and the user selects the record and I requery the mainform with the selected pk. Not very fancy but works well. Nate has a lookup, and I'm sure Paul does too. I think someone earlier pointed out how to call a form and get the return value. It works the same way for buttons or any other need that will call a form or dialog. Johnf _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
