A procedure is a defined set of logic that performs a specific task. Similar to many other programming languages, AL includes a set of prewritten procedures that are available to us to perform a wide variety of different tasks. The underlying logic for some of these procedures is hidden and not modifiable. These non-modifiable procedures are supplied as part of the AL programming language. Some simple examples of non-modifiable procedures are as follows:
- DATE2DMY: Supply a date to this procedure and, depending on a calling parameter, it will return the integer value of the day, month, or year of that date
- STRPOS: Supply a string variable and a string constant to this procedure and it will return the position of the first instance of that constant within the variable, or a zero, if the constant is not present in the string that's contained in the variable
- GET: Supply a value and a table to this procedure and it will read the record in the table with a primary...