Page 1 of 1 1
Topic Options
#119399 - 2004-05-11 08:31 PM isinsubnet syntax
tr6boy Offline
Starting to like KiXtart

Registered: 2001-10-24
Posts: 131
I'm trying to figure out how to use IsInSubnet() when I have a list of more than one subnet to test for. It works fine when I'm using just one network ID, such as:
Code:
 IsInSubnet($IP,$NetworkID)  



Looking at the example, I then tried

Code:


$NetworkID[0] = "10.1.4.1/22"
$NetworkID[1] = "10.1.3.0/24"



and the following to evaluate $answer...
Code:

$Answer = ISINSUBNET($IP,$NetworkID)
$Answer = ISINSUBNET($IP,$NetworkID,,1)



Returns Error in expression, on the line with $NetworkID[1]

So I think I just have the syntax wrong. How do I list multiple subnets?

Top
#119400 - 2004-05-16 03:12 AM Re: isinsubnet syntax
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
IsInSubnet() requires at least KiXtart v4.21.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.055 seconds in which 0.028 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org