Hi Chris, Instead of using pointers, try using the “Form” command.
In the subform itself, place a variable object and do this: 1) Set object’s type to “date” 2) Set object’s “variable or expression” to “Form.simpleData" In the parent form’s, do this: 3) Place an instance of the subform in the parent form. 4) Set subform instance’s “variable or expression” to “Form.info” 5) Set subform instance’s type to “Object”. 6) Also place a variable object above the subform instance. 7) Set the variable object’s type to date. 8) Also set the variable object’s “variable or expression” to “Form.info.simpleDate" 9) In the parent form’s “On Load” event make this assignment: "Form.info.simpleDate := Current date" Now execute the parent form. The date should appear in **both** the parent form and its subform instance. Try changing the date: 10) in the **parent form**. Note that date also changes in the subform. 11) in the **subform**. Note that the date also changes in the parent form. Why 2-different expressions: * In parent form: "Form.info.simpleDate” * In subform: "Form.simpleDate" You are using the “Form” command to define values assigned to the form. In parent form: “Form.info.simpleDate” references the date in the parent form’s “Form.info” object. That’s why you need “ Form.info.simpleDate”. Also in the parent form, you pass to the subform the parent form’s “Form.info” object. That’s why you assign the subform’s instance “variable or expression” the value “Form.info”. In the subform, the attributes of the “Form.info <http://form.info/>” object (ie, “simpleData”) are assigned to the subform’s “Form”. So the subform has “Form.simpleDate”. Best regards, Jeremy > On Jul 7, 2019, at 8:33 PM, Chris Belanger via 4D_Tech <[email protected]> > wrote: > > if the bound variable is Form.simpleDate this does not work. ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

