VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Split any string from any given location..just supply the parameters to functiions in the modules

by Shadab Azeem Rahil (8 Submissions)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 6th May 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Split any string from any given location..just supply the parameters to functiions in the modules

API Declarations


'5th June 2002
'[email protected]
'http://www.akaaz.cjb.net

Rate Split any string from any given location..just supply the parameters to functiions in the modules



      
    Dim CutOff, strLength As Integer
        
    CutOff = InStr(1, strLine, strSplitBy, vbTextCompare)
    strLength = Len(strLine)
    strLine = Mid$(strLine, CutOff + 1, strLength)
    String_Value_After = strLine
    
End Function
Public Function String_Value_Before(ByVal strLine As String, strSplitBy As String) As String
      
    Dim CutOff, strLength As Integer
        
    CutOff = InStr(1, strLine, strSplitBy, vbTextCompare)
    strLength = Len(strLine)
    strLine = Mid$(strLine, CutOff + 1, strLength)
    String_Value_Before = strLine
    
End Function



Download this snippet    Add to My Saved Code

Split any string from any given location..just supply the parameters to functiions in the modules Comments

No comments have been posted about Split any string from any given location..just supply the parameters to functiions in the modules. Why not be the first to post a comment about Split any string from any given location..just supply the parameters to functiions in the modules.

Post your comment

Subject:
Message:
0/1000 characters