[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

PHP explode equivalent for VB - returning an array from string with unique separators

Posted on 2006-04-06
2
Medium Priority
?
1,809 Views
Last Modified: 2013-12-25
Does anybody have a subsitute for PHP explode function in VB? I suppose it would have to be written from scratch.

To elaborate:
x="a,b,c"

then

a = FuncExplode(x)

a(1)="a"
a(2)="b"
a(3)="c"

The array variable a, I suppose, could be also passed to a function as ByRef variable.

Suggestions will be most appreciated. Thanks.
0
Comment
Question by:saulius88
2 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 2000 total points
ID: 16391308
Hi saulius88,

Starting with VB6, you have the Split function that returns an array from a string

Cheers!
0
 

Author Comment

by:saulius88
ID: 16391391
Simple.. Can't believe I was writing functions by hand for that :)

Thanks a bunch.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

825 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