From: capt edgar on
Hi there

I'm trying to figure out what the following syntax for split means in
the following line of the code

arrTest[0].split('/')[0]

what does ('/')[0] means in split('/')[0]?

please can anyone explain
From: "Dave "Crash" Dummy" on
capt edgar wrote:
> Hi there
>
> I'm trying to figure out what the following syntax for split means in
> the following line of the code
>
> arrTest[0].split('/')[0]
>
> what does ('/')[0] means in split('/')[0]?
>
> please can anyone explain

Actually, that's Javascript, not VBScript, but
"arrTest[0].split('/')[0]" is the first element of an array created by
dividing the string "arrTest[0]" into pieces at the character "/".

For example, if
arrTest[0]="www.domain.com/level1/level2/holygrail.jpg"
then
arrTest[0].split('/')[0]="www.domain.com"

--
Crash

Committed to the search for intraterrestrial intelligence.
From: Auric__ on
On Sat, 20 Mar 2010 15:38:02 GMT, Dave "Crash" Dummy wrote:

> Committed to the search for intraterrestrial intelligence.

How goes the search? Any luck yet?

--
Charles Darwin was a freaking genius.
From: "Dave "Crash" Dummy" on
Auric__ wrote:
> On Sat, 20 Mar 2010 15:38:02 GMT, Dave "Crash" Dummy wrote:
>
>> Committed to the search for intraterrestrial intelligence.
>
> How goes the search? Any luck yet?

Not around here. :-)

--
Crash

"Something there is that doesn't love a wall, that wants it down."
~ Robert Frost ~
From: Auric__ on
On Sat, 20 Mar 2010 19:20:59 GMT, Dave "Crash" Dummy wrote:

> Auric__ wrote:
>> On Sat, 20 Mar 2010 15:38:02 GMT, Dave "Crash" Dummy wrote:
>>
>>> Committed to the search for intraterrestrial intelligence.
>>
>> How goes the search? Any luck yet?
>
> Not around here. :-)

If you manage to find any, alert the press... although they wouldn't get it.

--
Undefiled graves? Well, what are we waiting for? Let's defile 'em!