Example: custquery.4gl (function display_cust)

This function displays the contents of the mr_custrec record in the form. It is called by the functions query_cust and fetch_rel_cust.

Function display_cust:
01 FUNCTION display_cust()
02   DISPLAY BY NAME mr_custrec.*
03 END FUNCTION
Note:
  • Line 02 uses the DISPLAY BY NAME syntax to display the contents of the program record mr_custrec to the form fields having the same name.