Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
18%
200 - 500 GB
26%
500 - 800 GB
3%
800 - 1200 GB
9%
1200 - 1500 GB
12%
1500 - 2000 GB
12%
> 2000 GB
21%
Total votes: 34

Baanboard at LinkedIn


Reference Content

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

Local variables

Variables declared within a function block are local variables. They are accessible only within the function in which they are declared.

Declaration, initialization, and scope

Point of declaration

In the function between the brackets { }.

Syntax of declaration

<type> name

Initialization

The value of local variables is undefined with each function call. Local variables must always be initialized in the function.

Scope (validity and time)

Only within and during function execution.

Example

 function void test()
 {
    long I            | Local variable
    for i =1 to 100     | Always to be initialized by user
        ....
    endfor
    return
 }

Related topics


0
No votes yet


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


©2001-2018 - Baanboard.com - Baanforums.com