It is possible to globally enable or disable all the assertions of an application (for example according to the type of version) via the SET ASSERT ENABLED command.
Il est possible d'activer ou de désactiver globalement toutes les assertions d'une application (par exemple en fonction du type de version) via la commande SET ASSERT ENABLED.
Description The SET ASSERT ENABLED command can be used to disable or re-enable any assertions inserted into the 4D code of the application.
Description La commande FIXER ACTIVATION ASSERTIONS permet de désactiver ou de réactiver les assertions éventuellement insérées dans le code 4D de l'application.
If the expression is false and if the assertions are enabled (see the SET ASSERT ENABLED command), the error -10518 is generated, exactly as for the ASSERT command.
Si l'expression est fausse et si les assertions sont activées (cf. commande SET ASSERT ENABLED), l'erreur -10518 est générée, exactement comme pour la commande ASSERT.
Typically, the SET ASSERT ENABLED command could be used in the On Startup database method in order to enable or disable assertions according to whether the application is in "Test" mode or in "Production" mode.
Typiquement, la commande FIXER ACTIVATION ASSERTIONS pourra être utilisée dans la Méthode base Sur ouverture afin d'activer ou non les assertions suivant que l'application est en mode "Test" ou en mode "Production".
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.