469,949 Members | 2,697 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,949 developers. It's quick & easy.

Left function in ASP

Hi,

I want to use the two first numbers of a user-input as a flag, but don't
know how to get them in ASP... How can I use a function like 'variable =
left(user_input, 2)' in ASP?
Regards,

--
Luiz Horacio
lh******@iname.com
Jul 19 '05 #1
2 9652
intFlag = GetFlag(user_input)
If intFlag > 0 Then
'Do What Ever
End If

Function GetFlag(strData)
GetFlag = 0
strData = Left(Trim(strData),2)
If IsNumeric(strData) Then
GetFlag = strData
End If
End Function

-dlbjr
Discerning resolutions for the alms
Jul 19 '05 #2
string = Left$(user_string, 2)

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
Luiz Horacio <lh******@iname.com> wrote in message
news:en**************@TK2MSFTNGP12.phx.gbl...
Hi,

I want to use the two first numbers of a user-input as a flag, but don't
know how to get them in ASP... How can I use a function like 'variable =
left(user_input, 2)' in ASP?
Regards,

--
Luiz Horacio
lh******@iname.com

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Martin Lira | last post: by
4 posts views Thread by Agnes | last post: by
18 posts views Thread by Jm | last post: by
8 posts views Thread by marco | last post: by
6 posts views Thread by =?Utf-8?B?R3JlZw==?= | last post: by
1 post views Thread by Lagon666 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.