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.

 

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

Preprocessor
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:

0
No votes yet

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:

0
No votes yet

Relational operators
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.

0
No votes yet

Global variables
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

0
No votes yet

Static variables
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

0
No votes yet

Include files (preprocessor)
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.

0
No votes yet


All times are GMT +2. The time now is 18:58.


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