Am sure will be an easy task but am unable to Pass parameters to a form ? I
have checked both Init & Load Event but have not received the Params there ?

Re: Passing Parameters to Forms ! by Eric

Eric
Mon Dec 01 06:11:21 CST 2003

Hello, Tanveer!
You wrote on Mon, 1 Dec 2003 16:40:04 +0500:

THM> Am sure will be an easy task but am unable to Pass parameters to a
THM> form ? I have checked both Init & Load Event but have not received the
THM> Params there ?

You need to include the LPARAMETERS or PARAMETERS statement as the first
line of the INIT():

* yourform.init
LPARAMETER tcValue1, tcValue2
MESSAGEBOX(tcValue1 + " " + tcValue2)
* end yourform.init

* to pass parameters to your form:
DO FORM yourform WITH "Hello", "World"
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8



Re: Passing Parameters to Forms ! by Tanveer

Tanveer
Mon Dec 01 06:23:33 CST 2003

Thanx Eric, I was doing same but from within VPME, may be it was something
wrong there.. How do I Return a Value from the Form ..

"Eric den Doop" <ericdendoop@xspamblockxfoxite.com> wrote in message
news:eUqN9QAuDHA.1576@TK2MSFTNGP11.phx.gbl...
> Hello, Tanveer!
> You wrote on Mon, 1 Dec 2003 16:40:04 +0500:
>
> THM> Am sure will be an easy task but am unable to Pass parameters to a
> THM> form ? I have checked both Init & Load Event but have not received
the
> THM> Params there ?
>
> You need to include the LPARAMETERS or PARAMETERS statement as the first
> line of the INIT():
>
> * yourform.init
> LPARAMETER tcValue1, tcValue2
> MESSAGEBOX(tcValue1 + " " + tcValue2)
> * end yourform.init
>
> * to pass parameters to your form:
> DO FORM yourform WITH "Hello", "World"
> --
> Eric den Doop
> www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8
>
>



Re: Passing Parameters to Forms ! by Eric

Eric
Mon Dec 01 06:30:47 CST 2003

Hello, Tanveer!
You wrote on Mon, 1 Dec 2003 17:23:33 +0500:

THM> Thanx Eric, I was doing same but from within VPME, may be it was
something
THM> wrong there.. How do I Return a Value from the Form ..

How to Return a Value from a Form
http://support.microsoft.com/default.aspx?scid=kb;en-us;126956
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8