Search found 1 match

by pmilera
Tue Jun 16, 2015 2:44 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Formatting numbers to show commas after thousands
Replies: 12
Views: 11775

Re: Formatting numbers to show commas after thousands

This is an easy fix too.

local memhold,ToCalc,ticker,x

on mouseUp
--(put the number you want to add comma to into memhold)
set the itemdelimiter to "."
put item 1 of memhold into ToCalc
if the number of chars in ToCalc < "3" then
exit to top
end if
put the number of chars in ToCalc into ...