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
|
|
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.
|
|
|
|
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
|
|
|
|
By patvdv at 26 Feb 2008 - 21:56
|
Preprocessor
The bic6.2 compiler for 3GL program scripts has a built in preprocessor with the following functions:
|
|
|
|
By patvdv at 26 Feb 2008 - 21:56
|
Functions
In a program, a function performs a particular task that can be executed many times, with different values. The syntax of a function is as follows (parts between brackets [] are optional):
FUNCTION [ function_type ] function_name( [ arglist ] )
{
declaration of local variables
statement(s)
RETURN[( return_value )]
}
where arglist consists of one or more argument declarations with the following syntax:
|
|
|
|
By patvdv at 26 Feb 2008 - 21:56
|
Relational operators
Relational operators compare two operands. If the condition (equal, greater than, less than, and so on) is satisfied, the result becomes TRUE. If not, it becomes FALSE.
Relational operators can be performed on values of every available type, but the operands of one expression must be of the same type. One exception to that rule is that longs can be compared to doubles.
|
|
|
|
By patvdv at 26 Feb 2008 - 21:56
|
|
Global variables
Variables declared outside any function block are global variables. You can use them in all functions that occur after the variable declaration.
Declaration, initialization, and scope
|
Point of declaration
|
Outside the functions.
|
|
Syntax of declaration
|
<type> name
|
|
|
|
By patvdv at 26 Feb 2008 - 21:56
|
Static variables
You can declare local variables as static variables. The value of a static variable is saved at the end of the function and is used again the next time the function is called. A static variable is automatically initialized at the start of the program. Normal local variables are undefined at each function call, and are not initialized at first call.
Declaration, initialization, and scope
Point of declaration
|
|
|
|
By patvdv at 26 Feb 2008 - 21:56
|
|
Include files (preprocessor)
To include files, use one of the following statements:
#include "filename" #include <filename>
Files included between '<' and '>' are searched for in the directory '$BSE/include<rel.number>'. This directory is reserved for system headers and cannot be used for applications. Normally a file specified between quotes is searched for using the standard file redirection method.
|
|
|
|
By patvdv at 26 Feb 2008 - 21:56
|
|
String constants
A string constant is a number of displayable single-byte or multibyte characters enclosed by double quotation marks. A string constant with length zero (that is, an empty string) is indicated by two adjacent quotation marks. To include a double quotation mark within a string constant, you must include two adjacent double quotes. For example:
|
|
|
|
By patvdv at 26 Feb 2008 - 21:56
|
Iterations
Iterative statements repeat the associated statements until a specified condition becomes FALSE.
WHILE statement
This statement has the following form:
|
|
|
|
All times are GMT +2. The time now is 22:37.
| |