Prevent the multiply by 100 using number format property %

Questions and answers for designing and implementing forms in Servoy

Prevent the multiply by 100 using number format property %

Postby deezzub » Tue Sep 03, 2013 1:02 pm

How to prevent the multiply by 100 using the number format property character "%"?

2013-09-03 13_01_19-Edit_integer_number_format_property.png
Edit interger / number format property window
2013-09-03 13_01_19-Edit_integer_number_format_property.png (45.6 KiB) Viewed 3185 times
deezzub
 
Posts: 328
Joined: Tue May 28, 2013 3:02 pm
Location: Oldenburg, Germany

Re: Prevent the multiply by 100 using number format property

Postby Peter de Groot » Tue Sep 03, 2013 2:19 pm

Hi,

I usually do,

format.png
format.png (5.03 KiB) Viewed 3177 times


###'%'

Regards,

Peter
User avatar
Peter de Groot
 
Posts: 215
Joined: Thu Jan 10, 2008 8:38 pm
Location: Not sure...

Re: Prevent the multiply by 100 using number format property

Postby deezzub » Tue Sep 03, 2013 5:26 pm

Peter de Groot wrote:Hi,

I usually do,

format.png


###'%'

Regards,

Peter

If try that, I get a value like "5,0", but my intention was to get a value like "5 %" / "5,0 %" / "5,00 %". I used the "%" sign, because I want to get it after the number in the textfield. Is this not possible?
deezzub
 
Posts: 328
Joined: Tue May 28, 2013 3:02 pm
Location: Oldenburg, Germany

Re: Prevent the multiply by 100 using number format property

Postby jcompagner » Tue Sep 17, 2013 9:55 am

if you do a format like peter says, so "####'%'" then you should get a % sign in the back. that ' ' around it just makes sure that it is escaped, else the formattter will use it and then /100 happens.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Forms

Who is online

Users browsing this forum: Google [Bot] and 8 guests