Re: [dabo-users] call dialog from button onHit

Author: John

Posted: 2009-08-08 at 12:46:25

On Saturday 08 August 2009 09:31:45 am JpoorRandP@aol.com wrote:

> What I'm really after is how to piece together an application. We're =A0

> longtime VFP programmers, and what I'm trying to figure out is very basic:

> how =A0 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 =A0FindRun form can process user input and move the pointer in a

> cursor or table =A0that's in a grid on the calling form. The find functio=

n is

> just an example, the =A0approach would be the same for other functions, s=

uch

> as buttons for "Export =A0Results" or "Revise Status"

Larry and I are doing the same thing (we are VFP'ers). We use a table that=

=20

contain metadata (maybe the required select statement to retreive the corre=

ct=20

data associated with the request). I have a screencast that has a few=20

examples of the find button. But there is no code. I just display a grid=

=20

with the data and the user selects the record and I requery the mainform wi=

th=20

the selected pk. Not very fancy but works well.

Nate has a lookup, and I'm sure Paul does too. =20

I think someone earlier pointed out how to call a form and get the return=20

value. It works the same way for buttons or any other need that will call =

a=20

form or dialog.

Johnf

©2009 John