raj
unread,Jan 11, 2008, 5:48:13 PM1/11/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hi,
i am using VB script
<script type="text/vbscript">
dim rule,pos
rule="IP>10.10.1.1 and IP<10.10.1.10"
posgreater=instr(rule,">")
Document.write("posgreater: " &posgreater &"</br>")
posand = instr(ucase(rule),"AND")
Document.write("posand: " &posand &"</br>")
poslesser = instr(ucase(rule),"<")
Document.write("poslesser: " &poslesser &"</br>")
strLeftIP = mid(rule,posgreater,posand)
Document.write("strLeftIP: " +strLeftIP &"</br>")
strRightIP = mid(rule,poslesser,len(rule))
Document.write("strRightIP: " +strRightIP)
</script>
o/p is
posgreater: 3
posand: 14
poslesser: 20
strLeftIP: >10.10.1.1 and
strRightIP: <10.10.1.10
i want my strLeftIP and strRightIP sholud contain only 10.10.1.1 and
10.10.1.10 values,any suggestion from trimming >,and and < from
that.so that i can use if -else condition in searching my ip value in
between strLeftIP and strRightIP.
or any other suggestion to compare my ip from that value.
> > Any one please help me out,thanks in advance- Hide quoted text -
>
> - Show quoted text -