Quantcast
Channel: Sage X3 – Tips, Tricks and Components
Viewing all articles
Browse latest Browse all 1524

Protecting Customized Mod through Code

$
0
0

In one of our previous blog named “How to check ‘Active’ Activity Code” we discussed deactivation of the Activity Code. There we looked on for checking of the active Activity Code through global variables. We can implement the same logic directly through code also.

 There may be scenario when we write the code for different customization in single processing file and we have to deactivate one of the customization or else this may lead to crashing of code. We can protect our customized code through an Activity Code by using function as shown in below screen shot. Here ‘ZEINT’ is the Activity code that we are referring.

ActivityCode-1

Here we need to use a simple function ‘afnc’. It is used to define a function code of the software in order to be able to use it. The function codes, referenced in a dedicated table of the dictionary, can also be found via the tooltips on a user menu, or by looking at the value of the GFONCTION variable via the calculator, when connected to the function.

Hope this Helps!!


Viewing all articles
Browse latest Browse all 1524

Trending Articles