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         |     [email protected]
HyperActive Software           |     http://www.hyperactivesw.com



On April 21, 2017 11:31:36 AM Bob Sneidar via use-livecode <[email protected]> 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
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



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

Reply via email to