VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Function to search for a substring within a string.

by Andrew Silvernail (2 Submissions)
Category: String Manipulation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sun 14th October 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Function to search for a substring within a string.

API Declarations


Dim intloop As Integer 'loop control
strChar As String 'individual character


Rate Function to search for a substring within a string.



strChar = Mid(strText, intloop, 1)
        If strChar = Mid(strSub, 1, 1) OR _
            Mid(strSub, 2, Len(strSub)) = Mid(strText, intloop + Len        (strSub) - 1) Then
            SubString = True            
        End If
Next
End Function

Download this snippet    Add to My Saved Code

Function to search for a substring within a string. Comments

No comments have been posted about Function to search for a substring within a string.. Why not be the first to post a comment about Function to search for a substring within a string..

Post your comment

Subject:
Message:
0/1000 characters