VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Delete a single character (parse) from a string. Very useful.

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



Rate Delete a single character (parse) from a string. Very useful.



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


Download this snippet    Add to My Saved Code

Delete a single character (parse) from a string. Very useful. Comments

No comments have been posted about Delete a single character (parse) from a string. Very useful.. Why not be the first to post a comment about Delete a single character (parse) from a string. Very useful..

Post your comment

Subject:
Message:
0/1000 characters