Table Of Contents | Index |
Example:This leaves a String containing 'AEFGH'
String = 'ABCDEFGH' Delete(String,2,3)
If count exceeds the length of the string, the string is truncated at pos.
Another use of Delete is to delete elements of an array.
Delete (Array,Position,Count) works exactly like the delete command for strings. It deletes elements of an array beginning at Position for Count elements. The NumberOfElements is adjusted accordingly.
Example:
MyArray[1] = "ONE" MyArray[2] = "TWO" MyArray[3] = "THREE" MyArray[4] = "FOUR" Delete( MyArray,2,2 );MyArray now contains.. MyArray[1] = "ONE" MyArray[2] = "FOUR"
Category: | String | Array |
---|
Table Of Contents | Index |
|