Asp Split function usage

Source: Internet
Author: User
Tags numeric value split

The Split function returns an index.


Returns a one-dimensional array with a subscript starting from zero. It contains a specified number of substrings.


Split (expression [, delimiter [, count [, compare])

The Split function syntax includes the following parts:

Partial description
Expression is required. A string expression that contains substrings and delimiters. If expression is a zero-length string (""), Split returns an empty array with no elements or data.
Optional. String character used to identify the substring boundary. If ignored, the space character ("") is used as the separator. If delimiter is a zero-length string, the returned array contains only one element, that is, the complete expression string.
Optional. The number of substrings to return.-1 indicates that all substrings are returned.
Compare is optional. Numeric value, indicating the comparison method used to identify a substring. For more information about the value, see "set value.

Set value

The compare parameter settings are as follows:

Constant value description
VbUseCompareOption-1 is compared with the set value in the Option Compare statement.
VbBinaryCompare 0 performs binary comparison.
VbTextCompare 1.
VbDatabaseCompare 2 is only used for Microsoft Access. Perform comparison based on your database information.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.