4D v14

Object properties

Home

 
4D v14
Object properties

Object properties    


 

 

In addition to the manipulations explained in the video, you should also note that:

Forms also have their own properties and methods.

You may be tempted to put your code in either of these methods (object or form), but how do you know which one is best?

What counts is that the code is run when it is needed, so either method could do the job. At first, don't spend too much time worrying about optimizing every detail.

However, it is important to remember the order in which methods are executed when an event occurs:

  1. Object methods are executed first (in the order of the object depth = layer level = entry order)
  2. After all object methods are run, then the form method takes back over and is run itself.

By default (for questions of optimization and ease of maintenance), we recommend that you deselect all the object and form events that don't have any programming associated with them and only check the ones that you actually need or that do have associated programming.

If you have structured your programming by testing the events that you use but also leaving other events checked as well, the method is loaded and run each time one of the checked events occurs even if it's an event that you haven't programmed, so you may be calling the method repeatedly for no reason.

 
 

 
PROPERTIES 

Product: 4D
Theme: Object properties

 
ARTICLE USAGE

Self-training ( 4D v13)
Self-training ( 4D v14)