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

 
Variables
By patvdv at 26 Feb 2008 - 21:56

Variables

The name of a variable is used to indicate the memory location where data (characters, numbers, and so on) is stored. The name of the variable refers to the associated data.

The value of a variable can change during execution of the program. A variable belongs to a data type and must be declared before its use. This is usually done at the start of the program. In some cases initialization of the declared variables is necessary. The default initial value is always zero for longs and doubles, and an empty string for strings.

The name of a variable can consist of any number of letters, digits, underscores [_], and periods [.]. It must begin with an alphabetic character.

You should keep the following in mind when naming a variable:

  • The name of a variable must not be the same as a reserved word or a previously declared variable.
  • The name of the variable must give an indication of its contents. It is good practice to indicate the purpose of a variable beside its declaration, in the form of comments.
  • A variable must not be used for a purpose other than the one for which it was originally intended.

For further information, see the following sections:

Related topics



0
No votes yet


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


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