[windows2000] Re: OT: Computer Language Phrasebook Website [Plug & a request for he lp]

  • From: Dogers <dogers@xxxxxxxxx>
  • To: windows2000@xxxxxxxxxxxxx
  • Date: Mon, 25 Oct 2004 11:04:30 +0100

On Mon, 25 Oct 2004 10:00:35 +0100, Spriggs Jon
<jon.spriggs@xxxxxxxxxxxxxx> wrote:
> I wonder if anyone can assist me with a project I'm working on. Basically,
> I'm a programmer who uses a couple of different programming languages, and I
> always get lost with the semantics of the different dialects. In order to
> make it a bit easier, I've started a website called the "Computer Language
> Phrasebook" at http://language.hollosite.com which, I'm hoping will be a
> series of short statements like the following (from
> http://language.hollosite.com/modules.php?name=News&file=article&sid=3&mode=&order=0&thold=0):

Says Module isnt active?

>  Select Case strVariable
>  Case "Value 1"
>  wscript.echo "Value 1"
>  Case "Value 2"
>  wscript.echo "Value 2"
>  End Select

In VB (and VBA too, so I assume this carries over to WSH) you can do:
Select Case sVar
Case "Val1", "Val2", "Val3"
Case Else
End Select

This Weeks Sponsor StressedPuppy.com Games
Feeling stressed out? Check out our games to
relieve your stress.
To Unsubscribe, set digest or vacation
mode or view archives use the below link.


Other related posts: