Re: cut from string using JScript

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Steve Fulton (cerberus40_at_hotmail.com)
Date: 06/05/04


Date: Sat, 05 Jun 2004 08:37:22 -0400

Randy Webb wrote:

> Dave Anderson wrote:
>> Randy Webb wrote:
>>
>>>> How's about: myString.split("\/")[myString.length+1]
>>>
>>> myString.length+1 isn't the element you would be looking for.
>> That aside, if JScript is going to give you a great tool like
>> Array.pop(),
>> why not use it?
>
> Support, or lack of, is the major problem with .pop() JScript 5.5 or
> better, which is IE5.5 unless they have updated the JS Engine in IE4/5.

Or unless you add your own support for it to the Array prototype. Simply
put your code in a library that's included in each page and you stop
worrying about how up-to-date the client is.

Array Power, Part I
bringing the IE Array object up to par
http://www.webreference.com/dhtml/column31/index.html

Array Power, Part II
bringing the IE (and sometimes the Navigator) Array object up to par
http://www.webreference.com/dhtml/column32/index.html

-- 
Steve
There may be times when we are powerless to prevent injustice, but
there must never be a time when we fail to protest. -Elie Wiesel


Relevant Pages

  • Why scalar /= dimension(1)) ? for intent(inout) dummy arg
    ... a scalar as an actual argument, it fails to compile with the error ... The shape matching rules of actual arguments and dummy arguments have ... Just make the actual argument an array. ... real*4 function interpolated(xi, yi, x, par) ...
    (comp.lang.fortran)
  • Array assignment
    ... I'm mostly a Java coder, but I'm trying to get my Delphi knowledge back on ... to par. ... How do you assign values to the array in a condensed form? ...
    (comp.lang.pascal.delphi.misc)
  • Re: cut from string using JScript
    ... > Or unless you add your own support for it to the Array prototype. ... > bringing the IE Array object up to par ...
    (microsoft.public.scripting.jscript)
  • Re: VB-101: Passing Arrays ByVal vs ByRef
    ... instance of the same array. ... They are three separate references to the same thing. ... Dim firstArray As Integer ... 'are referencing the same array object ...
    (microsoft.public.dotnet.languages.vb)
  • Re: VB-101: Passing Arrays ByVal vs ByRef
    ... instance of the same array. ... They are three separate references to the same thing. ... > Dim firstArray As Integer ... > 'are referencing the same array object ...
    (microsoft.public.dotnet.languages.vb)