`
Par2: One-to-one relationship 1997-12-05 -- Marius Roeksund Defining a MANY:1 relationship, with keys defined as UNIQUE will do this for you, if you just embed this short little code into the FORM. In the FILESCHEMATIC, you should add the related file to your "primary file", like this: UPDATE RECORD ON DISK +Primary file -----Related file This will lookup the related record for you, and you may add fields from that record on the form. When you exit, you must store the related record yourself.... In the embed "END OF PROCEDURE, BEFORE CLOSING FILES" you should add this code: if LocalRequest=RequestCompleted ! If OK is pressed... PUT(related file) ! Update related file End Printed November 21, 2024, 7:30 am This article has been viewed/printed 35188 times. |