Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Poll
What version of Baan have you installed
Baan IV
45%
FP3
3%
FP4
0%
FP5
0%
FP6
0%
FP7
3%
10.2 (incl. 10.2.1)
3%
10.3
6%
10.4
16%
10.5
19%
Other
3%
Total votes: 31

Baanboard at LinkedIn


Reference Content

 
Items for 'English' (by date)
By Date  
Alphabetically By Date  

 

You are browsing all items of this content category sorted by date (most recent first). Note that forum posts/threads are not included here.

 

If you would like to search through the content then please refer to the Site Search page.

 

Numeric constants
By patvdv at 26 Feb 2008 - 21:56


Numeric constants

The Baan 3GL programming language supports long and floating point constants. Both types can be preceded by a '+' or a '-' sign.

Long constants

A long constant consists of the digits 0-9 only. For example:

0
No votes yet

Fixed and based variables
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.

0
No votes yet

Object identifications (preprocessor)
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:

0
No votes yet

Function arguments
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

0
No votes yet

Operator precedence
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.

0
No votes yet

Function calls
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.

0
No votes yet

3GL programming language features: overview
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.

5
Average: 5 (1 vote)

Function prototypes
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:

0
No votes yet

Pragma codes (preprocessor)
By patvdv at 26 Feb 2008 - 21:56


Pragma codes (preprocessor)

Pragma codes represent compiler options. The following pragma codes are available:

 #pragma nodebug

Do not show the source while debugging.

 #pragma debug

Show the source while debugging.

0
No votes yet

Function type and return value
By patvdv at 26 Feb 2008 - 21:56


Function type and return value

The type declaration in a function declaration indicates the type of the function. This must be the same as the type of the return value. Functions can be of the following types:

  • long
  • double
  • string
  • domain
  • void (this means that no value is returned)

If you do not specify a type, the function is of type void by default. In functions of type void, the return statement cannot have any argument. For example

0
No votes yet


All times are GMT +2. The time now is 23:59.


©2001-2017 - Baanboard.com - Baanforums.com