Code: Select all
on mouseUp
put "" into fld 1
put 6 into temp
set the numberFormat to "#.000"
put temp + 0 into fld 1
end mouseUp
Code: Select all
on mouseUp
put "" into fld 1
put padThree(6) into fld 1
end mouseUp
function padThree var
set the numberFormat to "#.000"
add 0 to var
--OPPTIONS
return var -- puts 6
return var & "K" --puts 6.000K
return var & quote --puts 6.000"
return char 1 to 5 of var & "K" -- puts 6.000
end padThree
Craig