Página 1 de 1

Passing an returning a Parameter to a Form

Publicado: Dom Ago 24, 2008 12:15 am
por g.s.rogers
How to do this?

Passing an returning a Parameter to a Form

Publicado: Lun Ago 25, 2008 9:43 am
por Dionisis Divaris
Hello Gary
If i want top pass a returning parameter to a form, i use its cargo
property. In this property you can assign value of any data type.
Hope that this helps you.
Regards
Dionisis
"Gary S. Rogers" <g.s.rogers@att.net> wrote in message
news:48b08bf8$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> How to do this?

Passing an returning a Parameter to a Form

Publicado: Mar Ago 26, 2008 2:48 am
por g.s.rogers
Thanks for answering Dionisis. Could you give me an example of the syntax to
pass a value to the Cargo property?
"Dionisis Divaris" <sv1fkk@hol.gr> wrote in message
news:48b262be$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hello Gary
> If i want top pass a returning parameter to a form, i use its cargo
> property. In this property you can assign value of any data type.
> Hope that this helps you.
> Regards
> Dionisis
> "Gary S. Rogers" <g.s.rogers@att.net> wrote in message
> news:48b08bf8$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> How to do this?
>
>

Passing an returning a Parameter to a Form

Publicado: Mar Ago 26, 2008 11:11 am
por ChrisGillard
Gary,
This is the technique I am using as recommended by the Xailer guys a while
back.
Allows parameters to be passed & returned.
With this approach make DATA vars in the second form to hold the parameters
to be passed and the values to be returned.
The calling syntax is quite important as the secondary form still exists
after the showmodal allowing you to extract any number of return values.
Not suggesting I fully understand the calling sysntax but I have used it
lots of times.
Hope it helps.
Chris Gillard
//
// pops a secondary form to choose another BRAND from a dbfbrowse
//
METHOD BrandEditBtnClick( oSender, Value ) CLASS StyleForm
WITH OBJECT TBrandChooseForm() // the secondaty form
:cMode := "VIEW" // set
cMode DATA var in secondary form
:New( SELF ):ShowModal()
::cBrandChosen := :cRetBrandChosen // pick up
cRetBrandChosen from secondary form
END
::oBrandEdit:Value := ::cBrandChosen // set some var
on primary form to returned value
RETURN Nil
[email=..s.rogers@att.net]..s.rogers@att.net[/email]> wrote in message news:48b08bf8$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> How to do this?

Passing an returning a Parameter to a Form

Publicado: Mié Ago 27, 2008 3:25 pm
por g.s.rogers
Thanks, Chris. I'll study this and give it a try.
Gary
"Chris Gillard" <chris@bluesquare.co.uk> wrote in message
news:48b3c8bc$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Gary,
>
> This is the technique I am using as recommended by the Xailer guys a while
> back.
>
> Allows parameters to be passed & returned.
>
> With this approach make DATA vars in the second form to hold the
> parameters to be passed and the values to be returned.
>
> The calling syntax is quite important as the secondary form still exists
> after the showmodal allowing you to extract any number of return values.
>
> Not suggesting I fully understand the calling sysntax but I have used it
> lots of times.
>
> Hope it helps.
>
> Chris Gillard
>
> //
> // pops a secondary form to choose another BRAND from a dbfbrowse
> //
> METHOD BrandEditBtnClick( oSender, Value ) CLASS StyleForm
>
> WITH OBJECT TBrandChooseForm() // the secondaty form
> :cMode := "VIEW" // set
> cMode DATA var in secondary form
> :New( SELF ):ShowModal()
> ::cBrandChosen := :cRetBrandChosen // pick up
> cRetBrandChosen from secondary form
> END
>
> ::oBrandEdit:Value := ::cBrandChosen // set some var
> on primary form to returned value
>
> RETURN Nil
>
>
>
>
> [email=.s.rogers@att.net].s.rogers@att.net[/email]> wrote in message news:48b08bf8$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> How to do this?
>
>