Метод | Описание | |
---|---|---|
Copy ( Primitive array1, Primitive array2 ) : Primitive |
Copy one array to another array. The dimensions of the 2 arrays must be the same.
|
|
CopyNew ( Primitive array ) : Primitive |
Copy one array to a new array.
|
|
CopyToSBArray ( Primitive array ) : Primitive |
Copy LDArray type to SmallBasic array type. The reverse operation (SmallBasic to LDArray) isn't possible becuase the SmallBasic indexes are not necessarily contiguous integers. Note also that a SmallBasic array cannot hold an empty string value, so these will not be copied.
|
|
Count ( Primitive array ) : Primitive |
Get the number of non-empty "" elements in the array.
|
|
Create ( Primitive maxSize ) : Primitive |
Create a new array (can be used for numbers or character strings).
|
|
CreateFromIndices ( Primitive sbArray ) : Primitive |
Create a new array from the indices of a Small Basic array.
|
|
CreateFromValues ( Primitive sbArray ) : Primitive |
Create a new array from the values of a Small Basic array.
|
|
Delete ( Primitive array ) : Primitive |
Delete an existing array (not generally required, but can save memory if lots of arrays are created).
|
|
GetIndex ( Primitive sbArray, Primitive value ) : Primitive |
Get the index of the first occurance of a value in an SB array.
|
|
GetValue ( Primitive array, Primitive index ) : Primitive |
Get value in array.
|
|
Load ( Primitive array, Primitive fileName ) : Primitive |
Load an array from a file.
|
|
Save ( Primitive array, Primitive fileName ) : Primitive |
Save an array to a file.
|
|
Search ( Primitive array, Primitive searchstring, Primitive match ) : Primitive |
Obtain an array of the indices that have values that contain searchstring. The search is case in-sensitive. The input array is unchanged and the match array must be previously created with the same size as the array to check.
|
|
SetValue ( Primitive array, Primitive index, Primitive value ) : Primitive |
Set value in array.
|
|
Sort ( Primitive array ) : Primitive |
Perform a sort on an LDArray. By default the sort is by string value, therefore 10 comes before 2. To sort by number value, all values must be a number (or empty). Empty values are placed at the end of the sort. The input array is replaced by the sorted array.
|
|
SortIndex ( Primitive array, Primitive index ) : Primitive |
Obtain an array of the indices in sort order of an array. By default the sort is by string value, therefore 10 comes before 2. To sort by number value, all values must be a number (or empty). Empty values are placed at the end of the sort. The input array is unchanged and the index array must be previously created with the same size as the array to sort.
|
|
getArray ( string name ) : Array |
Метод | Описание | |
---|---|---|
getNewNumber ( ) : int |
public static Copy ( Primitive array1, Primitive array2 ) : Primitive | ||
array1 | Primitive | /// The array to copy from. /// |
array2 | Primitive | /// The array to copy to. /// |
Результат | Primitive |
public static CopyNew ( Primitive array ) : Primitive | ||
array | Primitive | /// The array to copy. /// |
Результат | Primitive |
public static CopyToSBArray ( Primitive array ) : Primitive | ||
array | Primitive | /// The array name. /// |
Результат | Primitive |
public static Count ( Primitive array ) : Primitive | ||
array | Primitive | The array name. |
Результат | Primitive |
public static Create ( Primitive maxSize ) : Primitive | ||
maxSize | Primitive | /// The maximum number of elements in the array. /// |
Результат | Primitive |
public static CreateFromIndices ( Primitive sbArray ) : Primitive | ||
sbArray | Primitive | The SB array. |
Результат | Primitive |
public static CreateFromValues ( Primitive sbArray ) : Primitive | ||
sbArray | Primitive | The SB array. |
Результат | Primitive |
public static Delete ( Primitive array ) : Primitive | ||
array | Primitive | /// The array name. /// |
Результат | Primitive |
public static GetIndex ( Primitive sbArray, Primitive value ) : Primitive | ||
sbArray | Primitive | The SB array. |
value | Primitive | The value to find. |
Результат | Primitive |
public static GetValue ( Primitive array, Primitive index ) : Primitive | ||
array | Primitive | /// The array name. /// |
index | Primitive | /// The index at which to get the value (indexed starting from 1). /// |
Результат | Primitive |
public static Load ( Primitive array, Primitive fileName ) : Primitive | ||
array | Primitive | The array to load the data into. /// The array must already exist. |
fileName | Primitive | The file path to load the array from. |
Результат | Primitive |
public static Save ( Primitive array, Primitive fileName ) : Primitive | ||
array | Primitive | The array to save. |
fileName | Primitive | The file path to save the file to. |
Результат | Primitive |
public static Search ( Primitive array, Primitive searchstring, Primitive match ) : Primitive | ||
array | Primitive | The array to check for matches. |
searchstring | Primitive | The string to search for. |
match | Primitive | An array to hold the index of matched values. |
Результат | Primitive |
public static SetValue ( Primitive array, Primitive index, Primitive value ) : Primitive | ||
array | Primitive | /// The array name. /// |
index | Primitive | /// The index at which to add the value (indexed starting from 1). /// |
value | Primitive | /// The value. /// |
Результат | Primitive |
public static Sort ( Primitive array ) : Primitive | ||
array | Primitive | The array to sort. |
Результат | Primitive |
public static SortIndex ( Primitive array, Primitive index ) : Primitive | ||
array | Primitive | The array to obtain an index order sort. |
index | Primitive | An array to hold the index order of the sorted array. |
Результат | Primitive |
public static getArray ( string name ) : Array | ||
name | string | |
Результат | Array |