README.md
December 4, 2022 ยท View on GitHub
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 | |
| By | Rocky Clark (Kath-Rock Software) |
| Level | Intermediate |
| User Rating | 4.8 (124 globes from 26 users) |
| Compatibility | VB 5.0, VB 6.0 |
| Category | String Manipulation |
| World | Visual 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)