In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Passing an returning a Parameter to a Form

Xailer English public forum
Responder
g.s.rogers
Mensajes: 202
Registrado: Dom Feb 17, 2008 3:35 am

Passing an returning a Parameter to a Form

Mensaje por g.s.rogers »

How to do this?
Avatar de Usuario
Dionisis Divaris
Mensajes: 485
Registrado: Jue Jul 12, 2007 8:48 pm
Ubicación: Athens Greece

Passing an returning a Parameter to a Form

Mensaje 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?
T.I.A
Dionisis
SGS-soft
support.sgs@gmail.com
g.s.rogers
Mensajes: 202
Registrado: Dom Feb 17, 2008 3:35 am

Passing an returning a Parameter to a Form

Mensaje 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?
>
>
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

Passing an returning a Parameter to a Form

Mensaje 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?
g.s.rogers
Mensajes: 202
Registrado: Dom Feb 17, 2008 3:35 am

Passing an returning a Parameter to a Form

Mensaje 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?
>
>
Responder