incrementing a decimal...
Monte Goulding
monte at appisle.net
Tue Nov 7 19:45:47 EST 2017
Something like:
put “3.33.007" into tValue
set the itemDelimiter to "."
put format("%s.%03d", item 1 to 2 of tValue, item 3 of tValue + 1) into tNextValue
> On 8 Nov 2017, at 11:22 am, Nicolas Cueto via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> I'm after an easy way to convert span 3.33.007-3.33.012 into this
> incremental cr-del list:
>
> 3.33.007
> 3.33.008
> 3.33.009
> 3.33.010
> 3.33.011
> 3.33.012
>
> From experience, I know if I add 1 to "07" the result is "8" and not "08".
>
> Thank you.
>
> --
> Nicolas
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list