User login
|
|
|
Frontpage Sponsor
|
|
|
Poll
|
Would you like to see a separate forum on Baanboard for the ION product? No 13% Yes 87% Total votes: 90 |
Baanboard at LinkedIn
|

|
|
|
|
Items for 'BaanERP' (by date)
|
|
By patvdv at 26 Feb 2008 - 21:56
|
Reliability of double.cmp()
Suppose the following variables:
|
|
|
|
By patvdv at 26 Feb 2008 - 21:56
|
Transfer of control
The Baan 3GL programming language supports several statements that change the flow of control in a program. These enable control to be transferred either conditionally or unconditionally to a specified point in the program.
|
|
|
|
By patvdv at 26 Feb 2008 - 21:56
|
|
Debugger commands
Debugger commands consist of from one to three words; the words can be separated from each other by one or more spaces. The assignment command is an exception. Here the variable and the value to be assigned are separated by a ':=' sign. Most commands require a line number and/or a source name. If no source name is specified, the default is the current source.
|
|
|
|
By patvdv at 26 Feb 2008 - 21:56
|
Fixed and based variables
Fixed variables
A string variable can be declared as fixed so that its current length always equals the maximum length. For example:
STRING name(10) FIXED
name = "andrew" | the string is always filled up with spaces
The keyword FIXED is applicable to one-dimensional strings only. Multi-dimensional string arrays are always fixed and do not need to be declared with the keyword FIXED.
|
|
|
|
By patvdv at 26 Feb 2008 - 21:56
|
Object identifications (preprocessor)
The compiler always places a default identification in an object, but you can include you own if you wish. You can use the UNIX command what to write all object lines that begin with '@(#)' on standard output.
The default identification has the following content:
#ident "@(#)<source name>, YY/MM/DD, [HH/MM], From ${logname}"
To set you own identification use the following statement:
|
|
|
|
By patvdv at 26 Feb 2008 - 21:56
|
Function arguments
The arguments of a function are the variables declared in the function header. Arguments can be accessed only within the function.
Declaration, initialization, and scope
Point of declaration
In the function between the brackets { }.
Syntax of declaration
[ref|reference] <type> name
|
|
|
|
By patvdv at 26 Feb 2008 - 21:56
|
Operator precedence
An expression can include a number of operators, variables, and constants. The overall result is calculated in accordance with the rules of precedence described here. For example, because multiplication has precedence over addition, the result of the expression (3 + 4 * 5) is 23 and not 35.
|
|
|
|
By patvdv at 26 Feb 2008 - 21:56
|
Function calls
The call of a function must have the same number of arguments as declared in the function header. Value arguments can be called using a constant or a variable; reference arguments can only be called using a variable. If the called function is not of type void, the function call must be assigned to a variable or used as value argument in another function call.
|
|
|
|
By patvdv at 26 Feb 2008 - 21:56
|
3GL programming language features: overview
This section describes the features of the Baan 3GL programming language. You can use the 3GL language in both 3GL scripts and 4GL scripts.
|
|
|
|
By patvdv at 26 Feb 2008 - 21:56
|
Function prototypes
A function consists of three parts:
- Function prototype
- Function definition (function block)
- Function call
The function prototype must be exactly the same as the function header in the function definition. The prototype of a function is not always necessary. For example, it is not necessary in the following situations:
|
|
|
|
All times are GMT +2. The time now is 20:10.