Hi All,
on Wed Nov 11, Matt Maier wrote:
> This works with the two cases you described.
> I've heard that "repeat while" isn't the fastest option,
> but it sounded like 6 repeats would be an extreme
> case, so it probably doesn't matter...
on Wed Nov 11, James Hale wrote:
> You could just use the
A number with more than one period... is not a number. An IP address is not a
number. It's a period delimited list of decimal values ranging from 0 to 255.
It may help to think of them as such.
Bob S
___
use-livecode mailing list
use-livecode@lists
You could just use the replace function.
function newnum pnum
put offset(".",pnum,3) into trem
if trem = 0 then --only a single decimal
return pnum
else
--we have more than on decimal, remove good number for later
put char 1 to trem+2 of pnum into newnum
delete cha
This works with the two cases you described. I've heard that "repeat while"
isn't the fastest option, but it sounded like 6 repeats would be an extreme
case, so it probably doesn't matter.
on testingTesting
-- 10.26.12.47.38.52.71
-- 10.26 0.12 0.47 0.38 0.52 0.71
-- put "80.26.12" into
Hi All,
Recently, while updating Ian's SVGL
to import some SVG archives that
you could download from OpenClipart.org
I found an error processing this number:
80.26.12
This looks like a number with two decimal points
but it's a shorthand for two numbers that some
SVG editors use to save space by r