numberFormat affecting array keys???

J. Landman Gay jacque at hyperactivesw.com
Fri Apr 21 12:53:51 EDT 2017


Alternately, put a space after pSourceString to force it to text, which 
will apply numberformat, and then return word 1 of it.

--
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



On April 21, 2017 11:31:36 AM Bob Sneidar via use-livecode 
<use-livecode at lists.runrev.com> wrote:

> Okay this is why they call me Sly Dawg. I used the engine quirk against it 
> to produce this:
>
> on mouseUp
>    repeat with i = 1 to 10
>       put formatNumber(i, "00") into myArray [i]
>    end repeat
>    breakpoint
> end mouseUp
>
> function formatNumber pSourceString, pFormat
>    set the numberFormat to pFormat
>    put pSourceString into aArray [pSourceString]
>    put the keys of aArray into tResult
>    return tResult
> end formatNumber
>
> Booyah!
>
> Bob S
> _______________________________________________
> 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