2017년 7월 11일 화요일

thousand separator


how could i automatically set a dot every "000" while i'm typing on a textbox a number?
found some old solutions

--
what about using one of these "old solutions"?

-- 


you might try a Procedure built like this.  It will even handle currency with decimals


-- 
See attached for the recursive way.
But for it to happen while typing in the number, you would need
a Clock timer to check if the contents had changed since the last check.
(global variable)

If the contents had changed, strip off the separator(s) and replace the .text
with the separated form of the number.
Make sure the Clock doesn't fire again during the update, using its enable flag.





-- 
But you should not set the numbers only attribute, because I think it will only allow , as thousand separator.

-- 
thanks all.
expecially abraham :-)



You could also use AppyBuilder new extension (see attached) - get it from here: https://sourceforge.net/projects/appybuilder/files



-- 
thank you for the new extension...
concerning the FormatThousandSeparator method you might want to add an option to have comma or dot as separator...


-- 
Regarding option for comma or dot as separator, that is already built-in. It automatically uses the country format.
Also, checkout the List manipulation extension for List ordering, reversing, sorting (ascending / descending): Shuffling / Ordering Lists

-- 
great! perfect!

--
well, great stuff!!!

-- 
hossein, i have a question for list sorting

if i have a list

1) hossein, 30 mln, milan, nice
2) diego, 20 mln, naples, nice

how could i sort the list taking a middle value (like milan-naples)?


--
Are you saying you want to take like 3 value from every list item?
If yes, You have 2 Lists. Use "select List Item" to get list items by index.

-- 
Are you asking to sort this table by its third column?

If so, see the merge_sort app in the Gallery at

and make your own version of the precedes function,
which decides if one item precedes another item in the list.

In your case, the precedes function would accept two rows from the table
being sorted, select their third item, and compare those items.

-- 
it seems the perfect solution.
actually, i already downloaded this project, but months ago...when i did not understand almost anything about appinventor

but right now it's difficult too :-D

thanx aby!

-- 

댓글 없음:

댓글 쓰기