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
>
>