92
Views
8
Comments
Solved
Number with dot!!
Question

Hi,

I have a situation and I dont know if it should be an image or not.

I have this rat image and chicken for instance. they have an event OnClick with a handler client action. But there is a point that I wish that if a variable called money is lower than the cost of the rat or chicken, the image would be less saturated like fading or fade color, and it should be not clickable. But I dont know if this is the right way to do it.

Like 

The other question is that the number 0 that appears on the left of the first image, when it starts growing, even that being a decimal, its not showing a dot like 1.000 or 1.000.000 but 1000.1000000. How do I do to make it appear a dot?

Thank you in advance. !!


2021-03-05 13-56-11
Ricardo Pereira
 
MVP
Solution

Hi,

You can use that function, use 0 as number of decimal digits, "," as decimal separator and "." as group separator:

You will have something like this:

And like this:

Note that for high values you will need Long Integer type.


Hope this can help.


Best regards,

Ricardo Pereira

2021-03-05 13-56-11
Ricardo Pereira
 
MVP

Hi,

You can use the function "FormatDecimal" from Built-In functions:

Hope this can help.

Best regards,

Ricardo Pereira

2022-01-25 15-06-08
Pedro Boffa

Hi,

Thank you for the help.

I tried here, but maybe I expressed my self wrong.

I have integer numbers. when i reach the number 1000. I wish that a dot appeared like 1.000 instead of only 1000.

2021-03-05 13-56-11
Ricardo Pereira
 
MVP
Solution

Hi,

You can use that function, use 0 as number of decimal digits, "," as decimal separator and "." as group separator:

You will have something like this:

And like this:

Note that for high values you will need Long Integer type.


Hope this can help.


Best regards,

Ricardo Pereira

2022-01-25 15-06-08
Pedro Boffa

Amazing, Ricardo, thank you very much !!!

2021-03-05 13-56-11
Ricardo Pereira
 
MVP

You're welcome!

Please, try it and give feedback please.

And, if this is the solution, please mark it as solution because it can be useful to others! ;)


Best regards,

Ricardo Pereira

2022-01-25 15-06-08
Pedro Boffa

It worked pretty great !!

Thank you very much again.

I thought about the Mark as a Solution.

But this post has 2 questions, can I mark 2 solutions?

I did not mark it yet as I was in doubt if someone manage to answer the other question, how can I mark yours and his/hers solution to the other question?

2021-03-05 13-56-11
Ricardo Pereira
 
MVP

I think you can mark both or just the last one (you're choose :) ).

But in this case, since there isn't all answered, let it unmarked and in the end mark what you think is correct.

Best regards,

Ricardo

2022-01-25 15-06-08
Pedro Boffa
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.