Normal Topic Form - SubForm Communication (Read 704 times)
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Form - SubForm Communication
Feb 17th, 2004 at 5:24pm
Print Post Print Post  
Quote:
// On ENTER Form for City in CIties subform

var ii as int
var str as string

// Find out what instance of the parent we are on.
ii = @FormResultSetCurrentPosition("Countries")

// Get the Countries Population LE here in the subform
str = @FormFieldValue("Countries", "Population", ii)

// Tell the world.
WriteLn("The population of my country: " + str)



Mark, the above code for MainForm and SubForm communication is not working in version 1.0.1.  Obviously as per your earlier note, this should work better in ver 1.0.2 and we are looking forward to work with it.  Does the MainForm record has to be saved before SubForm can read the value of the MainForm element and use it in the code of subform?
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Form - SubForm Communication
Reply #1 - Feb 17th, 2004 at 6:30pm
Print Post Print Post  
Quote:
Does the MainForm record has to be saved before SubForm can read the value of the MainForm element and use it in the code of subform?


in 1.0.2 - no.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged