Great I’ll update my code. I am also going to update it to accept CIDR notation 
as the input so you will not be required to enter a subnet mask.

Bob S


On Jan 9, 2015, at 13:21 , Alex Tweedly 
<a...@tweedly.net<mailto:a...@tweedly.net>> wrote:

Thanks Bob - that looks really useful.

You do need one tiny tweak - the CIDR calculations are slightly off, because of 
the "."s in  theBinSubnetMask.
I added the line
 replace "." with empty in theBinSubnetMask
just before
  put offset("0", theBinSubnetMask) into theFirstNodeChar

to get the right answer (e.g. 24 instead of 27 in   192.168.1.1 255.255.255.0)

Thanks again
-- Alex.

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to