Hey all,
I am wondering if there is anything like Explode or Implode function used in PHP for ASP?
What I would like to do is take a chunk of data from a memo field in an Access database, say; the first 20 words, and display it on the page. This way when the user tries to write a novel, it will only display the first 20 words and not look out of place with the rest of the web page.
I use this piece of code in PHP and was just wondering if there is a way of doing the same thing in ASP?
-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
I am wondering if there is anything like Explode or Implode function used in PHP for ASP?
What I would like to do is take a chunk of data from a memo field in an Access database, say; the first 20 words, and display it on the page. This way when the user tries to write a novel, it will only display the first 20 words and not look out of place with the rest of the web page.
I use this piece of code in PHP and was just wondering if there is a way of doing the same thing in ASP?
Code:
function strip_text($str,$start,$end)
{
$body = explode(" ",$str);
$intstr = array_slice($body,$start,$end);
$newstr = implode(" ", $intstr);
return $newstr;
}
-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."