Example: custquery.4gl (function display_cust)

This function displays the contents of the mr_custrec record in the form.

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