VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Code Snippet for VB's Split() Function

by Rocky Clark (Kath-Rock Software) (12 Submissions)
Category: String Manipulation
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (26 Votes)

This is a one line code snippet to extract any section of a string using the Split() function. You can actually return the indexed section right in the same line as the Split() without having to assign the Split() to an array.

Rate Code Snippet for VB's Split() Function

Place this line in your immediate window and run it. It will return "Test5".
Print Split("Test0 Test1 Test2 Test3 Test4 Test5 Test6", " ")(5)

Download this snippet    Add to My Saved Code

Code Snippet for VB's Split() Function Comments

No comments have been posted about Code Snippet for VB's Split() Function. Why not be the first to post a comment about Code Snippet for VB's Split() Function.

Post your comment

Subject:
Message:
0/1000 characters