VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Reverses the sequence of arguments in a delimited string.

by Phil Campbell (1 Submission)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 10th July 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Reverses the sequence of arguments in a delimited string.

Rate Reverses the sequence of arguments in a delimited string.



Dim i As Integer
InvertArguments = ""
strStart = 1
For i = 1 To 4
    strdelim = InStr(strStart, str, delimiter)
    InvertArguments = Mid(str, strStart, IIf(strdelim = 0, 99, strdelim - strStart)) & IIf(strStart = 1, "", delimiter) & InvertArguments
    strStart = strdelim + 1
Next i
    
End Function



Download this snippet    Add to My Saved Code

Reverses the sequence of arguments in a delimited string. Comments

No comments have been posted about Reverses the sequence of arguments in a delimited string.. Why not be the first to post a comment about Reverses the sequence of arguments in a delimited string..

Post your comment

Subject:
Message:
0/1000 characters