[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

How to use Split Function?

Posted on 1999-11-08
4
Medium Priority
?
347 Views
Last Modified: 2010-05-02
From VB Help Split Function:

Description

Returns a zero-based, one-dimensionalarray containing a specified number of substrings.

Syntax

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


So, I need an example to use the function.


0
Comment
Question by:cwchaw
  • 3
4 Comments
 
LVL 5

Accepted Solution

by:
yronnen earned 150 total points
ID: 2193282
You want to split "Hello;World":
dim x() as string

x=split("Hello;World",";")

x(0)="Hello"
x(1)="World"

That's it
0
 

Author Comment

by:cwchaw
ID: 2193404
How to I know the total row of the array?
0
 

Author Comment

by:cwchaw
ID: 2193406
How to I know the total row of the array?
0
 

Author Comment

by:cwchaw
ID: 2193491
I use ubound within the loop to retrieve data from the dynamic array.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question