"Begins With, Ends With, Contains Question
(Full Version)
All Forums
>>
[Web Development]
>>
ASP and Database
Message
ACEDISH
->
"Begins With, Ends With, Contains Question
(9/30/2005 9:32:49)
Begins with Example
I am familiar with the LIKE command when using database but how would i do it in this example?
IF Request.Form("SomeName") BEGINS WITH "sm" THEN
(my made up code)
Thanks,
ACE
rdouglass
->
RE: "Begins With, Ends With, Contains Question
(9/30/2005 10:08:03)
quote:
IF Request.Form("SomeName") BEGINS WITH "sm" THEN
This would work for this particular scenario:
IF lcase(left(Request.Form("SomeName"),2)) = "sm" THEN
That help any?
Page:
[1]
Forum Software ©
ASPPlayground.NET
Advanced Edition
2.4.5 ANSI
0.03125