This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
Overview of methods

Overview of methods  


 

 

You can attach a method to a 4D object to specify the object’s action. A method is a series of instructions that tell the object to do something. For example, you can use methods to:

  • Enforce business rules during data entry,
  • Calculate values for fields and variables,
  • Manage interface elements such as combo boxes, hierarchical lists, and tab controls,
  • Manage drag-and-drop actions,
  • Assign actions to custom menu commands,
  • Create and manage multiple processes,
  • Manage transactions,
  • Manage custom reports,
  • Regulate multi-user database access.

You can create the following five types of methods:

  • Object methods, associated with individual objects on a form,
  • Form methods, attached to individual forms,
  • Triggers, run when specific events occur at the database engine level,
  • Database methods,  automatically when certain worksession-related events occur,
  • Project methods, can be called in different ways.

For more information about types of methods, please refer to the Methods page on developer.4d.com.

This chapter provides information about using 4D’s Method editor to create and modify methods. To learn more about 4D’s programming language, refer to this section on developer.4d.com

 
PROPERTIES 

Product: 4D
Theme: Editing methods

 
PAGE CONTENTS 
 
HISTORY 

 
ARTICLE USAGE

4D Design Reference ( 4D v20 R7)