Setting Data Into New Record

Chuck Pelto cbpelto at pcisys.net
Wed Jan 25 10:25:40 CST 2006


Is there anything special in a call to set a single field of a newly  
created record to a particular value?

I'm interested in creating a new record in a table the moment someone  
creates a new row in an RB2005 listbox. I want to set a pointer field  
in that newly created record to point to the record in another table.

The code I have so far is:

  childRecID = App.tblChild.AddRecord() // make new child record and  
capture the new record's ID

I want to add the recID for the parent record to the newly created  
child record.

Is Valentina pointing to the newly created record in the child table  
at this point, so that a simple...

App.tblChild.Field("chld_parentptr") = parentRecID

...sufficient?

Regards,

Chuck


More information about the Valentina mailing list