#32820 - 2002-11-19 01:11 AM
Re: Subnet Issues
|
Sealeopard
KiX Master
   
Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
|
Additionally, a SELECT-CASE-ENDSELECT is more appropriate because all the IP address ranges are mutually exclusive.
Also, please read the TCP/IP Primer in the FAQ Forum at TCP/IP Primer, Part I - IP Addresses , TCP/IP Primer, Part II - Classless Inter-Domain Routing (CIDR) , and TCP/IP Primer, Part III - IP Addresses and KiXtart .
Finally, are you sure you're script is actually called correctly? Please read Kixtart Starter's Guide . Also, please provide more info, e.g. KiXtart version, OS supported, are all UDFs included in your scripts, what's the batch file used, and so on.
Your TIME subroutine will most likely not work either because changing the system time requires at least 'Power User' privileges under Windows NT/2000/XP.
@HOMESHR will not work under Windows 9x, on the other hand.
Recommended INGROUP usage in Kixtart 4.x+ does no longer include comparing it to a value.
Please read the KiXtart Manual as for the correct IF-ENDIF syntax. Each IF requires a corresponding ENDIF as you've already been told
code:
if subnet(@ipaddress0,"10.13.0.0","255.255.248.0") = 1 GOSUB DO endif
However, better is
code:
SELECT CASE subnet(@ipaddress0,"10.13.0.0","255.255.248.0") GOSUB DO CASE subnet(@ipaddress0,"10.13.8.0","255.255.248.0") GOSUB Franklin ENDSELECT
[ 19. November 2002, 01:12: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 837 anonymous users online.
|
|
|