T24 Uses JBASE As The Back End To Store Its Data
T24 Uses JBASE As The Back End To Store Its Data
T24 Uses JBASE As The Back End To Store Its Data
Before we understand the various commands and the way to write programs in Infobasic, it is
very essential to understand the concept of arrays.
Every variable that we use occupies a portion of the memory. Usually character variables occupy
1 byte of memory, which have the capacity to store just one character. In case a series of
characters (string) like ‘T24’ has to be stored, then a character variable would not suffice. There
comes the need for arrays. We now need 6 bytes of continuous memory blocks in order to store
the string. Sequential storage of characters that form a string will make storage and retrieval
easier and faster. Moreover all the 6 bytes should have the same name. This is exactly the
functionality of an array.
To sum it up, an array is nothing but continuous memory allocation, where in all the bytes have
the same name as that of the array and can be distinguished with the help of a subscript which
always starts with a ‘0’.
Note : In case you wish to access ‘G’ in ‘GLOBUS’ , then you would usually specify Array1[0]
There are two different types of arrays that are supported by Infobasic. They are
1. Dynamic Arrays
2. Dimensioned Arrays
Dynamic Arrays
Dynamic arrays are, as the name implies, dynamic in the number, dimensions and their extents.
Dynamic arrays are especially useful in providing the ability to manipulate variable length
records with a variable length of fields and/or values within fields etc. A dynamic array is just a
string of characters that contain one or more delimiter characters. The delimiter characters are:
Filed1FMField2FM
Value1VMValue2VMValue3VMValue4FMField4FMSubValue1SMSubValue2FMField5
Note : All variables in Infobasic are treated as dynamic arrays. Dynamic arrays do not need any
explicit declaration. Initialisation would suffice.
TemenosTrgFMPakistanVMUKVMGenevaFMTechnicalVMFunctionalFM
jBASESMT24VMLendingSMFinancialsFMFMTrainer.1
Please note that the FM, VM and SMs will be stored as characters but will be stored as special
characters.
Dimensioned Arrays
Dimensioned array provide more efficient means of creating and manipulating tables of data
elements where the number of dimensions and the extent (number of elements) of each
dimension is known and is not likely to change. Dimensioned arrays have to be declared using
the DIMENSION statement.
You can also create single dimensioned arrays. This type of dimensioned arrays will only have a
fixed number of rows. The number of columns will unlimited. In this case, each row in the
dimensioned array will be a dynamic array.
DIM ARRAY3(5)
5 - > Refers to the number of rows
Columns - Unlimited