Glossary structure
Version 7 of the Sage X3 engine introduced structures. A structure has properties and methods and it is defined in files with an 'STC' extension.
The STC files do not have to be modified manually because they are generated from class class and representation dictionaries with "C_CLASS_CODE" and "R_REPRESENTATION_CODE" names. Rather than structure, we can call them classes or representation classes.
To support structures, the language includes the following features:
MYINSTANCE.PROPERTY
gives access to a property of an instance.RETURN_VALUE = fmet MYINSTANCE.METHOD(parameters)
is used to execute a class method.RETURN_VALUE = fmet MYORDER.LINES(3).DISCOUNT(2).CONTROL()
is possible ("CONTROL" method on "DISCOUNT(2)" property).