Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
35%
Installation Wizard into new VRC
42%
Manual into existing VRC
3%
Manual into new VRC
19%
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.

 

Enumerate and set constants
By patvdv at 26 Feb 2008 - 21:56


Enumerate and set constants

In the data dictionary you can define database table fields and domains of type enumerate or set.

An enumerate or set domain consists of a number of constants. In the program script (and other places in the data dictionary), a symbolic name is used. The symbolic name is the domain name, followed by a period [.] followed by the name of the constant. Variables of type set can also consist of a combination of set values.

0
No votes yet

Multibyte strings
By patvdv at 26 Feb 2008 - 21:56

Multibyte strings

A string variable can be declared as a multibyte string, in order to handle multibyte or bidirectional characters. For example:

STRING mb_str(10,5) MB | 5 multibyte strings of 10 characters

In a single-byte string, each byte contains a single character. But in a multibyte string, characters can occupy from one to four bytes.

0
No votes yet

Expressions and operators
By patvdv at 26 Feb 2008 - 21:56

Expressions and operators

An expression is a combination of variables, constants, and operators, built up in accordance with certain rules. There are two main kinds of operators: unary and binary. All operators, except the negation operators, are binary. Expressions with unary operators have the general form:

operator operand

Expressions with binary operators have the following form, where each operand can be another expression, variable, or constant:

0
No votes yet

NULL characters in strings
By patvdv at 26 Feb 2008 - 21:56


NULL characters in strings

Technically, a string is an array of characters. The internal representation of a string has a NULL character [] at the end. The NULL character represents the character with the value zero.

Null characters can occur within strings after use of the following functions:

0
No votes yet

External variables
By patvdv at 26 Feb 2008 - 21:56

External variables

An external variable is declared outside the function blocks. You can use them in all functions that occur after the variable declaration, and also in other programs (for example, forms, reports, and runtime expressions). It is possible to declare external variables within a function block but this is not recommended.
If a local variable has the same name as an external variable, the local variable is used within the function. The external variable is not affected.

0
No votes yet

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


All times are GMT +2. The time now is 22:25.


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