Or you can define an array as public in the parent form and the in the child form assign the values to the array
then insert the values in the table:
Local lOk
Public Array aField(n) && Where n = number of fields you have
Do Form MYCHILDFORM To lOk
If lOk
* They click the OK button in child form
Insert Into MYTABLE(FIELD1,FIELD2,FIELDN) Values(aField(1), aField(2), aField(n))
EndIf
Release aField
You must define the child form as Modal and in Unload event Return .T. or .F. if they click the Ok button or the Cancel button
Be fast like the Fox
Be free like the Penguin
Se Rápido como el Zorro
Se libre como el Pingüino