VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This counts how many certain characters are in a string.

by TerranRiCH (5 Submissions)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 26th July 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

This counts how many certain characters are in a string.

Rate This counts how many certain characters are in a string.



    CountChar = 0
    For i = 1 To Len(StringToSearch)
        If Mid(StringToSearch, i, 1) = Character Then CountChar = CountChar + 1
    Next i
End Function

Download this snippet    Add to My Saved Code

This counts how many certain characters are in a string. Comments

No comments have been posted about This counts how many certain characters are in a string.. Why not be the first to post a comment about This counts how many certain characters are in a string..

Post your comment

Subject:
Message:
0/1000 characters