|
|
VBScript Split Function
Complete VBScript Reference
The Split function returns a zero-based, one-dimensional array that contains
a specified number of substrings.
Syntax
|
Split(expression[,delimiter[,count[,compare]]])
|
| Parameter |
Description |
| expression |
Required. A string expression that contains substrings
and delimiters |
| delimiter |
Optional. A string character used to identify substring
limits. Default is the space character |
| count |
Optional. The number of substrings to be returned. -1
indicates that all substrings are returned |
| compare |
Optional. Specifies the string comparison to use. Can
have one of the following values:
- 0 = vbBinaryCompare - Perform a binary comparison
- 1 = vbTextCompare - Perform a textual comparison
|
Example 1
Dim txt,a
txt="Hello World!"
a=Split(txt)
document.write(a(0) & "<br />")
document.write(a(1))
Output:
Hello
World!
|
Complete VBScript Reference

The Altova MissionKit is an integrated suite of tools ideal for:
- XML development
- Web & Web services development
- Data mapping & integration
- Rendering & publishing XML & database data
- XBRL validation, taxonomy editing, transformation & rendering
The MissionKit for XML Developers includes XMLSpy® - the industry-leading XML editor; MapForce® - a
graphical data mapping, conversion, and integration tool; StyleVision® - a visual XSLT stylesheet designer;
DiffDog® - an XML-aware diff/merge tool; and 2 additional tools.
Try all 6 products free for 30 days!
Download a fully-functional free trial
|
|
|
|
|
|