DeleteLine
This method deletes a line from a specific index position.
Syntax
DeleteLine (LineIndex as Long)
Parameter | Description |
---|---|
LineIndex | Index of Line, zero-based indexing |
Sample Code
'This loop deletes the existing line objects in the field:
Dim lngLineCounter as Long
For lngLineCounter = (pField.LineCount - 1) To 0 Step -1
pField.DeleteLine(lngLineCounter)
Next
'Then add as many lines as required and populate with the required string:
pField.InsertLine(0)
pField.Line(0)="Line1"
pField.InsertLine(1)
pField.Line(1)="Line2"