SharkBait
02-02-2005, 08:08 AM
Hello again,
I am curious as to what VB6 uses as a function that is the same as PHPs explode()
Example:
$oldstring = "this,that:this2,that2";
$temparray = explode(":", $oldstring); // Produces an array with values (this,that this2,that2)
foreach ($temparray as $tempstring) {
$newarray = explode(",", $tempstring); // Produces values (this that)
next($temparray);
}
What I am doing is somewhat parsing through a field of a database's items that are grouped together and put into the variable $oldstring.
How is this done in Visual Basic? Does the above make sense? Really what I am trying to do is split up this,that and this2, that2 so I can further more split those up into individual components to toss back in my form. Which has to do with sales orders and their items that after the order is created the item, name, date etc are stored in a database.
Perhaps this little explaination of what I am trying to do will allow someone to suggest a better way of going about this. I currently have this working fine with PHP/MySQL in a web intereface :)
Cheers,
SharkBait
I am curious as to what VB6 uses as a function that is the same as PHPs explode()
Example:
$oldstring = "this,that:this2,that2";
$temparray = explode(":", $oldstring); // Produces an array with values (this,that this2,that2)
foreach ($temparray as $tempstring) {
$newarray = explode(",", $tempstring); // Produces values (this that)
next($temparray);
}
What I am doing is somewhat parsing through a field of a database's items that are grouped together and put into the variable $oldstring.
How is this done in Visual Basic? Does the above make sense? Really what I am trying to do is split up this,that and this2, that2 so I can further more split those up into individual components to toss back in my form. Which has to do with sales orders and their items that after the order is created the item, name, date etc are stored in a database.
Perhaps this little explaination of what I am trying to do will allow someone to suggest a better way of going about this. I currently have this working fine with PHP/MySQL in a web intereface :)
Cheers,
SharkBait