by Joey Sullivan (2 Submissions)
Category: String Manipulation
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Originally Published: Mon 8th October 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Delete a single character (parse) from a string. Very useful.
API Declarations
'
'Example on how to use:
'
'Private Sub Form_Load()
'NewString = "My speelling is bad."
'FixedString = DeleteChar (NewString, 6)
'End Sub
Do
a = a + 1
b = Mid(CharString, a, 1)
If a = CharPosition Then GoTo 1
DeleteChar = DeleteChar + b
1 If a = Len(CharString) Then Exit Do
Loop
End Function