Posts

Showing posts with the label Expressions

Expressions

Expressions In Microsoft Dynamics C/AL Definition An Expression is a formula telling the computer how to generate the desired value.Like a variable and a constant, an expression has a type and value. A expression must be evaluated at run-time in order to determine its value. Although a constant's value is known at all times, a variable value is determined at run time, the  system must look it up in memory. Examples Quantity * DirectUnitCost Expressions Function Calls Expression function call are the type of function calls that calls from the expression itself. If you try to assign too many characters to a string variable, you will get a runtime error. How this overcomed, since the error doesnot occur until the program is running? One of the method to overcome this is to design your program such that this error could never happen. In some cases using another method.  MAXSTRLEN Function MAXSTRLEN function will tell you at runtime the maximum legth of a string that can fit in a variab...