devxlogo

Quick Split

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.

devx-admin

Share the Post: