README.md

December 4, 2022 ยท View on GitHub

_Code Snippet for VB's Split() Function

Description

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.

More Info

Submitted On
ByRocky Clark (Kath-Rock Software)
LevelIntermediate
User Rating4.8 (124 globes from 26 users)
CompatibilityVB 5.0, VB 6.0
CategoryString Manipulation
WorldVisual Basic
Archive File

Source Code

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