Re: If statement based on 'contains a certain string'?
jason_at_catamaranco.com
Date: 01/05/05
- Next message: Hugh Welford: "Re: Instant Messaging"
- Previous message: Evertjan.: "Re: If statement based on 'contains a certain string'?"
- In reply to: Evertjan.: "Re: If statement based on 'contains a certain string'?"
- Next in thread: Ray Costanzo [MVP]: "Re: If statement based on 'contains a certain string'?"
- Reply: Ray Costanzo [MVP]: "Re: If statement based on 'contains a certain string'?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 4 Jan 2005 19:23:09 -0500
Ahhhhhhhhhh....okay..it works but I am finding that my Case Else statement
is not working...
Thus, if none of the top two conditions are true I wish to default to
'
//code
......
Case Else
MasterList = MasterList & MasterList
I also tried:
Case False
MasterList = MasterList & MasterList
Is this by design?
Thanks
Jason
"Evertjan." <exjxw.hannivoort@interxnl.net> wrote in message
news:Xns95D55E02DBE1eejj99@194.109.133.29...
> wrote on 05 jan 2005 in microsoft.public.inetserver.asp.general:
>
> > Thanks, Ray, but it does not appear to be working.
> >
> > ChangeStatus = UCase(Request.Form("ChangeStatus"))
> > Response.write "<br><bR>" & ChangeStatus & "<br><br>"
> >
> > '//SALES STAGE ALERT: Under Offer
> >
> > Select Case ChangeStatus
> >
> > Case Instr(ChangeStatus, "SALES") > 0
>
> The above is not logical and should be:
>
> Select Case True
> Case Instr(ChangeStatus, "SALES") > 0
>
> =====================
>
> even better use if..then..else..,
> That gives less mistakes for the beginner:
>
> If Instr(ChangeStatus, "SALES") > 0 then
> ...
> Else
> ...
> End If
>
> --
> Evertjan.
> The Netherlands.
> (Replace all crosses with dots in my emailaddress)
>
- Next message: Hugh Welford: "Re: Instant Messaging"
- Previous message: Evertjan.: "Re: If statement based on 'contains a certain string'?"
- In reply to: Evertjan.: "Re: If statement based on 'contains a certain string'?"
- Next in thread: Ray Costanzo [MVP]: "Re: If statement based on 'contains a certain string'?"
- Reply: Ray Costanzo [MVP]: "Re: If statement based on 'contains a certain string'?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|