Friday 7 September 2012

Array in Axapta


Array hold same type of variable
arrya can be access thru integer indexes, Index begins with 1
Declaration of Array variable can be Table or Object
One dimention of array can be declare


Three type of Array

1.  Dynamic
     It is declared without integer index value, just put square bracket [ ],
     If you are not sure of row and column size of index use this
     int    myarrya[];

2.  Fixed - Length
      it can hold 30 items
      int    myarray[30];


3.  Partly on Disk
      dynamic integer arrya hold 30 elements in memory
      int   myarray[,30];
    
      string arrya hold 10elements and 30 in memory
      str   myarrya[10,30];
     
to reset all element in myarray do
myarray[0];
 

No comments:

Post a Comment