PDA

View Full Version : quote subform object


ABC123

Romy Huang
01-19-2005, 05:55 AM
I have a form which has a subform. Subform name is form1. OnDepart event of text object "repname" in topparent, I have this line:
form1:REP1.text = topparent:REPNAME.text

there is always a error, "form1:REP1 not found." Any one have this kind experience. Please give me some advice. Thank in advance.

Romy

Stan Mathews
01-19-2005, 06:26 AM
Using the xbasic explorer I do not see any way to reference objects on the subform. The subform object itself is available but the fields on the subform are not.

Romy Huang
01-19-2005, 10:18 AM
how to pass value or text to subform? Thanks.

Stan Mathews
01-19-2005, 10:49 AM
Maybe use the form value to set the value in the child table field (writing directly to the table) and resynch() the form to the set?

Louis Nickerson
01-21-2005, 06:51 AM
Romy,

Take a look at this post. It might send you in the right direction.

http://msgboard.alphasoftware.com/alphaphorum/read.php3?sortby=lastreply&direction=desc&num=11&id=74951&thread=74940


Louis

Romy Huang
01-21-2005, 07:25 AM
Thank Louis so much. It is what I wanted.