Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No Parameter Statement is Found 1

Status
Not open for further replies.

rclarke

Technical User
May 14, 2001
78
GB
Could any body please shed some light on the following problem?

I wish to link two forms using the 'do form textform with stestID'

sTestID = thisform.combo1.value is declared at the top
In the init event of the second form

LPARAMETER sTestID

txttst_stest=sTestID

and it comes up with the above message both forms are modal is this correct

Any HElp Greatly appreciated

Rachel
 
Hi,

If you had defined the LPARAMETER statement as the first statement in the init of second form, only then it can accept the parameter.

I think you should run your program in debug. So, that you will find the exact line of code which is causing a problem.

 
LPARAMETER is the first Line of the Init statement

Have now run debug

and is stopping on the DO FOrm With statement have looked through all the help files and I really cannot see what I am doing wrong
 
When you call a FORM2 from FORM1 with parameter passing,
1.
myPassedValue = ThisForm.Combo1.Value
DO FORM form2 with myPassedValue

2.
In the seconf form...
InitEvent
PARAMETERS myReceivedValue

ThisForm.txttst_stest=myReceivedValue
or
txttst_stest=myReceivedValue
and then use txttst_stest within this event for processing.

==========================================================
[ Note....
SET UDFPARMS TO VALUE | REFERENCE

TO VALUE means that a variable be passed by value, i.e - the variable's value can be changed in the user-defined function, but the variable's original value in the calling program isn't changed.
TO REFERENCE means that a variable be passed to a user-defined function by reference. Here thee user-defined function changes the value of the passed variable, the variable's original value in the calling program is also changed.]
This shall be set in the main prg.
====================================================
Hope this helps you. ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
If your variable sTestId is a public variable, I suggest you use a different variable name in the secondform.. as I suggested above. ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top