Home » Developer & Programmer » Forms » Percentage
Percentage [message #173804] Wed, 24 May 2006 08:52 Go to next message
emadbsb
Messages: 334
Registered: May 2005
Location: egypt
Senior Member

Hii all

i display a field inmy form to represent a percentage

all i want is to show it in the form of '10.00'
what i got '10' and when it is one hundrad percent it is shown as '1.00'

Thanks for everyone helped and helping me

[Updated on: Wed, 24 May 2006 08:53]

Report message to a moderator

Re: Percentage [message #173805 is a reply to message #173804] Wed, 24 May 2006 08:56 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
You can put a format mask in the item properties.

MHE
Re: Percentage [message #173806 is a reply to message #173804] Wed, 24 May 2006 09:03 Go to previous messageGo to next message
emadbsb
Messages: 334
Registered: May 2005
Location: egypt
Senior Member

it is a variable can i put for a variable a format mask
Re: Percentage [message #173809 is a reply to message #173804] Wed, 24 May 2006 09:15 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
emadbsb wrote on Wed, 24 May 2006 15:52

i display a field inmy form to represent a percentage
That 'field' (=text item) has a format mask property, yes. You might need to devide it by 100 to get the percentage and with a format mask you can add leading/trailing zeroes.

Is my assumption correct that you want this:
input: 10
item value 0.10

If that is the case, I have a small example for you:
- 2 text items
- INPUT, takes a percentage from 0 to 100
- PERCENTAGE is a formula item that divides INPUT to 100 and displays it.

Note: I'm on 6i now, so no fancy things Wink

If you have a variable, it is the same principle: divide by 100 and display it.

MHE
Re: Percentage [message #175157 is a reply to message #173804] Thu, 01 June 2006 02:15 Go to previous messageGo to next message
emadbsb
Messages: 334
Registered: May 2005
Location: egypt
Senior Member

No Message Body

[Updated on: Thu, 01 June 2006 02:17]

Report message to a moderator

Re: Percentage [message #175195 is a reply to message #175157] Thu, 01 June 2006 04:29 Go to previous message
karuparamb
Messages: 13
Registered: December 2005
Location: Jeddah
Junior Member

You can use as shown in my progress.fmb for Visual Progress bar


Best Regards.

Abdul Aziz.K.P
  • Attachment: progress.zip
    (Size: 10.91KB, Downloaded 1375 times)
Previous Topic: Problem in Cursor
Next Topic: How to add list items in run time
Goto Forum:
  


Current Time: Fri Sep 20 09:57:45 CDT 2024