Use input/output parameter with a browser !

make

Member
hi, i want to use input or output paramter in a browser i have created.
I have a program with a button, this is called Main.w
When i press the button the browser should start, he is called brw.w.
I want to give the browser a parameter Mainvalue wich is an integer. the brwoser should take this parameter for a query which is not definded yet. The browser must make this query an has to give back a row value ihave selected to my main. programm.
I have done everything, but i dont know how i should handle the input /output parameter.
Can someone give me an example, please !

Greets
 
The theroy

The theory looks something like this.

Define a variable as an integer then you can trigger opening your browse by putting this in your button:

{&OPEN-QUERY-yourbrowse}

Take a look at the browse triggers:

Browse trigger - open Query

OPEN QUERY {&SELF-NAME} FOR EACH yourtable where yourfield = yourinteger.

Browse trigger event on-value-change or maybe on-mouse-select

yourvariable = yourfield

Now you can pass yourvariable back to any other program or procedure you wish.
 
Top