The term "deprecated" is used to refer to features that still work in the current version of GeneXus but won't be supported in the future. Therefore, it is advisable to replace them with the new ones.
In this article, you can find a list of deprecated functions, methods, and rules.
First, take into account that deprecated functions, methods, rules, etc. are shown in the IDE with a different color than non-deprecated ones, as shown below.
Note that the AddMth function is not deprecated while the DeleteFile function is deprecated.
Besides, when trying to save, if deprecated functions/methods/rules are detected, an src0222 message will appear in the output when saving.
In addition, when selecting:
- Insert > Function
- Insert > Method
- Insert > Rule
...the deprecated ones are not offered.
This rule is deprecated. It can still be used when the Nullable property is set as "Compatible".
It is advisable to change the Nullable property to "Yes" or "No" and delete the rule. Probably, in this case, the expected value is "Yes".
This rule is no longer generated.
You can achieve the same behavior by adding the attributes to the Grid and setting their Visible property = False.
When working with a Free Style Grid control, the Visible property must be set by code (Attribute.Visible = 0).
|Nocheck() / Noread()
In knowledge bases coming from old versions of GeneXus, you can usually see the use of Nocheck() / Noread() rules in objects.
In many cases, they were defined as a result of not having suitable subtype groups available. This situation should be reviewed and corrected.