Delete

Prev Next Home Home Table Of Contents Index

Delete (String,Pos,Count)

Deletes characters from string starting at pos for count.


Example:
String = 'ABCDEFGH' Delete(String,2,3)

This leaves a String containing 'AEFGH'

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

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home