Free IP Calculator

Bob Sneidar bobsneidar at iotecdigital.com
Fri Jan 9 19:22:25 EST 2015


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 <alex at tweedly.net<mailto:alex at 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.



More information about the use-livecode mailing list