Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] select-case construct (amended)
- From: javascript@xxxxxxxxxx (Filipiak, Bob (Contractor))
- Subject: [Javascript] select-case construct (amended)
- Date: Mon, 29 Oct 2001 15:11:26 -0500
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C160B5.E34D0FF0
Content-Type: text/plain;
charset="iso-8859-1"
switch expr {
CASE label:
....
}
should work for NS 4.x and above according to my "Pure JavaScript."
Bob Filipiak
(Contractor)
-----Original Message-----
From: Esther_Strom@xxxxxxxx [mailto:Esther_Strom@xxxxxxxx]
Sent: Monday, October 29, 2001 3:00 PM
To: javascript@xxxxxxxxxx
Subject: [Javascript] select-case construct (amended)
Forgot to mention...this needs to work in NS4.7 for PC and Mac.
Thanks.
----- Forwarded by Esther Strom/McDougal/hmco on 10/29/01 01:58 PM -----
Esther Strom
To: javascript@xxxxxxxxxx
10/29/01 cc:
01:58 PM Subject: select-case construct
I'm sure this has been mentioned before, but I can't find the message or an
example in any of my books. Can you use a select-case construct in
javascript?
Pseudocode example:
select case prodStatus
Case "New"
//do this
Case "In Progress"
//do this
Case else
//do this
End select
Thanks for any help available.
Esther
_______________________________________________
Javascript mailing list
Javascript@xxxxxxxxxx
http://www.LaTech.edu/mailman/listinfo/javascript
------_=_NextPart_001_01C160B5.E34D0FF0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2652.35">
<TITLE>RE: [Javascript] select-case construct (amended)</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>switch expr {</FONT>
<BR><FONT SIZE=3D2> CASE label:</FONT>
<BR><FONT SIZE=3D2> ....</FONT>
<BR><FONT SIZE=3D2>}</FONT>
</P>
<P><FONT SIZE=3D2>should work for NS 4.x and above according to my =
"Pure JavaScript." </FONT>
</P>
<BR>
<P><FONT SIZE=3D2>Bob Filipiak</FONT>
<BR><FONT SIZE=3D2>(Contractor) </FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Esther_Strom@xxxxxxxx [<A =
HREF=3D"mailto:Esther_Strom@xxxxxxxx">mailto:Esther_Strom@xxxxxxxx</A>]<=
/FONT>
<BR><FONT SIZE=3D2>Sent: Monday, October 29, 2001 3:00 PM</FONT>
<BR><FONT SIZE=3D2>To: javascript@xxxxxxxxxx</FONT>
<BR><FONT SIZE=3D2>Subject: [Javascript] select-case construct =
(amended)</FONT>
</P>
<BR>
<P><FONT SIZE=3D2>Forgot to mention...this needs to work in NS4.7 for =
PC and Mac.</FONT>
</P>
<P><FONT SIZE=3D2>Thanks.</FONT>
<BR><FONT SIZE=3D2>----- Forwarded by Esther Strom/McDougal/hmco on =
10/29/01 01:58 PM -----</FONT>
<BR><FONT =
SIZE=3D2> &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; </FONT>
<BR><FONT =
SIZE=3D2> &nb=
sp; Esther =
Strom &=
nbsp; &=
nbsp; &=
nbsp; &=
nbsp; &=
nbsp; &=
nbsp; =
</FONT>
<BR><FONT =
SIZE=3D2> &nb=
sp; &nb=
sp; &nb=
sp; To: =
javascript@xxxxxxxxxx &nb=
sp; &nb=
sp; &nb=
sp; =
</FONT>
<BR><FONT =
SIZE=3D2> &nb=
sp; =
10/29/01 &nbs=
p; =
cc: &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; </FONT>
<BR><FONT =
SIZE=3D2> &nb=
sp; 01:58 =
PM &nbs=
p; Subject: select-case =
construct &nb=
sp; &nb=
sp; &nb=
sp; </FONT>
<BR><FONT =
SIZE=3D2> &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; </FONT>
<BR><FONT =
SIZE=3D2> &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; </FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=3D2>I'm sure this has been mentioned before, but I can't =
find the message or an</FONT>
<BR><FONT SIZE=3D2>example in any of my books. Can you use a =
select-case construct in</FONT>
<BR><FONT SIZE=3D2>javascript?</FONT>
</P>
<P><FONT SIZE=3D2>Pseudocode example:</FONT>
</P>
<P><FONT SIZE=3D2>select case prodStatus</FONT>
</P>
<P><FONT SIZE=3D2>Case "New"</FONT>
<BR><FONT SIZE=3D2>//do this</FONT>
</P>
<P><FONT SIZE=3D2>Case "In Progress"</FONT>
<BR><FONT SIZE=3D2>//do this</FONT>
</P>
<P><FONT SIZE=3D2>Case else</FONT>
<BR><FONT SIZE=3D2>//do this</FONT>
</P>
<P><FONT SIZE=3D2>End select</FONT>
</P>
<P><FONT SIZE=3D2>Thanks for any help available.</FONT>
</P>
<P><FONT SIZE=3D2>Esther</FONT>
</P>
<BR>
<P><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>Javascript mailing list</FONT>
<BR><FONT SIZE=3D2>Javascript@xxxxxxxxxx</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://www.LaTech.edu/mailman/listinfo/javascript" =
TARGET=3D"_blank">http://www.LaTech.edu/mailman/listinfo/javascript</A><=
/FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C160B5.E34D0FF0--
- Prev by Date: [Javascript] select-case construct
- Next by Date: [Javascript] select-case construct (amended)
- Previous by thread: [Javascript] select-case construct (amended)
- Next by thread: [Javascript] select-case construct (amended)
- Index(es):