>>>can I say do form myform with @parm1, @parm2 in vfp7
>>
>>Yes, you put LPARAMETERS or PARAMETERS as the first statement in the .Init() method of the form. Another useful technique is to save the parameters to form properties (which you predefine), so they don't go out of scope when Init() ends e.g.
>>
>>* MyForm.Init()
>>
>>LPARAMETERS ;
>> tuParm1 ;
>> , tuParm2
>>
>>This.MyProperty1 = tuParm1
>>This.MyProperty2 = tuParm2
>>
>
>Al,
>
>Thanks for the reply. That's what I thought too, and I have the form setup just as you described. However, a line just like that is giving me a syntax error in vfp7 and vfp9
>
>
>*.test\junktest
>
>PRIVATE parm1, parm2
>parm1=1
>parm2=2
>
>DO FORM junkform WITH @parm1, @parm2
>
>
>syntax error
I updated my reply before you posted yours, basically you don't need the "@"s in your command, DO ... WITH ... passes variables by reference by default without needing them. So just,
DO FORM junkform WITH parm1, parm2
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up