Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asptoday_discuss thread: Re: asptoday_discuss digest: February 25, 2002


Message #1 by "R. Sanchez" <rodrigosp@g...> on Tue, 26 Feb 2002 14:13:24 -0800 (PST)

Why did not use a select case ? i consider that it's better.



>6. Re: Phone area code

-------------------------

>

>Subject: Phone area code

>From: "Michael Wang" <mtuppers@y...>

>Date: Mon, 25 Feb 2002 10:41:11

>X-Message-Number: 3

>

>If Not Len(gPhone) = 10 Then

>		Response.Redirect "Error.asp?t=phone"

>	End If

>	If Left(gPhone, 3) = 604 Then

>		areaFound = 1

>	Else

>		areaFound = 3

>	End If

>        If Left(gPhone, 3) = 778 Then

>		areaFound = 2

>	Else

>		areaFound = 3

>	End If

>	

>	If areaFound = 3 Then

>		Response.Redirect "Error.asp?t=areacode"

>	End If

>

>my problem is if the areacode is not 604 it will redirect to error.asp?

>t=areacode  no matter what I try.  Please help.





___________________________________________________

GO.com Mail                                    

Get Your Free, Private E-mail at http://mail.go.com






  Return to Index