DeleteLine
Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 14 September 2020 12:41 PM

Syntax

 Public Sub DeleteLine(FileName As String, lineNumber As Long)

This function is used to delete a line in a file by a given the line number.

Parameters

Key Description 
FileName Path of a file, value of type String. 
lineNumber Number of line in a file that needed to delete, value of type Long.

Return value

No returned value.

Sample

Public Sub main()

  Dim fileName

  fileName = "C:\VertexWorld.txt" 

  AlertMessage DeleteLine (Cstr(fileName),L)

  'L means the line number

 End Sub

See Also


Back to VTL Client Script Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions