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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

One form not seing the other

Status
Not open for further replies.

pierrotsc

Programmer
Nov 25, 2007
358
US
I have a form called mainform and it has a uses clause:
uses computevalues;

In computevalues form, i also have a clause that says uses mainform.

Well, when I code in compute values:
mainform.radiogroup.itemindex:=0;
It's telling me that mainform does not exists.
When I type mainform. , i have no requesters that show all the available variable in mainform.
What am i doing wrong?
Thanks.
 
you need to reference the name of the form not the name of the unit. If your unit is named mainform (which is what other unit use, is units), your form has to have a different name:

Code:
FormMainForm.radiogroup.itemindex := 0

Leslie

Have you met Hardy Heron?
 
Yep, that's what i am doing. The unit is main so i use uses main and i call mainform. I was too fast typing.
Any other suggestion?
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top