Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 modification of active users - need help
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

skogizz
Starting Member

Sweden
25 Posts

Posted - 22 July 2002 :  14:03:34  Show Profile
Hi guys!

I'm trying to make active user to print som other info that I have in a file.

Is there a way I can make a match in a whole IP-series?

Right now I have it like this

if rsAM("AU_IP") = "194.10.10.10" then
bla bla bla

but I want to make it so it covers the whole series
from 194.10.10.1 - 194.10.10.255

So if the AU_IP is in that range then is will do the same thing as it works now..

Some help would be very nice :)



Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 22 July 2002 :  14:24:29  Show Profile
If you had the IP 194.10.10.10

IP = "194.10.10.10"

stuck it in this

newIP = left(IP,InstrRev(IP, ".")-1)

then it would return 194.10.10 which you could then check against...

So i think if you did


if left(rsAM("AU_IP"),InstrRev(rsAM("AU_IP"), ".")-1) = "194.10.10" then


it would work


Does that make sense?


No matter how fast light travels it finds the darkness has always got there first, and is waiting for it.
http://www.ian-hamlin.co.uk
Go to Top of Page

skogizz
Starting Member

Sweden
25 Posts

Posted - 22 July 2002 :  14:38:54  Show Profile
Sure!!

That makes sense, thanks alot!
It works just as I wanted :)

Thanks once again

Go to Top of Page

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 22 July 2002 :  14:46:18  Show Profile
No problem I'm pleased it works, I actually looked at the AU code and converted a bit from that


No matter how fast light travels it finds the darkness has always got there first, and is waiting for it.
http://www.ian-hamlin.co.uk


Edited by - Hamlin on 22 July 2002 14:47:26
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 1.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07