Quick Split

When you use the Split function from VB6 or VBScript, sometimes you need only a single value and not the whole array. To do this, you can reference the element you need right after the Split statement like this:

 Split(myVar, myDelim)(1) 

This statement retrieves the second element of the array, element 1.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: