| Author |
decimal places in combobox
|
|
| Dan Anderson 2005-11-29, 11:23 am |
| db+ I want to display the contents of a field in a table that has 5 decimal
places (interest rates). The combobox will only display 2 decimal places,
which won't work for my needs. Can anyone tell me how to display all 5
decimal places?
--
Dan Anderson
UBI Processing Dept.
andersond@ubinc.com
800-444-4824 ext 101
| |
| Paul Van House 2005-11-29, 11:23 am |
| In article <cvNus9P9FHA.712@news-server>, andersond@ubinc.com says...
> db+ I want to display the contents of a field in a table that has 5 decimal
> places (interest rates). The combobox will only display 2 decimal places,
> which won't work for my needs. Can anyone tell me how to display all 5
> decimal places?
>
>
Did you set the picture property of the combobox?
If so and it still doesn't work, try issuing the command
Set Decimals to 5
either from the command line or in your code before the form executes.
--
Paul Van House
remove ".removeme" for e-mail replies
Radio/TV Software and Baseball Stat Software:
http://www.binxsoftware.com
Family Home Page: http://vanhouse.binxsoftware.com
Church Home Page: http://www.ashfordumc.org
| |
| Paul Van House 2005-11-29, 11:23 am |
| In article <MPG. 1df647c19b26e9ae9896
b5@news.dbase.com>,
pvanhouse1.removeMe@houston.rr.com says...
> In article <cvNus9P9FHA.712@news-server>, andersond@ubinc.com says...
> Did you set the picture property of the combobox?
Oops, I thought you said spinbox...there is no picture property in
combobox. (If I paid attention to what I write.....)
--
Paul Van House
remove ".removeme" for e-mail replies
Radio/TV Software and Baseball Stat Software:
http://www.binxsoftware.com
Family Home Page: http://vanhouse.binxsoftware.com
Church Home Page: http://www.ashfordumc.org
| |
| Dan Anderson 2005-11-30, 3:23 am |
| I put the set decimals command in the onOpen procedure and it didn't work.
What's plan B?
--
Dan Anderson
UBI Processing Dept.
andersond@ubinc.com
800-444-4824 ext 101
"Paul Van House" <pvanhouse1.removeMe@houston.rr.com> wrote in message
news:MPG. 1df647c19b26e9ae9896
b5@news.dbase.com...
> In article <cvNus9P9FHA.712@news-server>, andersond@ubinc.com says...
> Did you set the picture property of the combobox?
> If so and it still doesn't work, try issuing the command
> Set Decimals to 5
> either from the command line or in your code before the form executes.
> --
> Paul Van House
> remove ".removeme" for e-mail replies
> Radio/TV Software and Baseball Stat Software:
> http://www.binxsoftware.com
> Family Home Page: http://vanhouse.binxsoftware.com
> Church Home Page: http://www.ashfordumc.org
| |
| Todd Kreuter 2005-11-30, 9:23 am |
| Dan Anderson wrote:
>
> I put the set decimals command in the onOpen procedure and it didn't work.
> What's plan B?
If that where to have any affect, you would need to set it before onOpen
because the combobox items are populated before onOpen. You might try an
overriden open method instead.
If that does not work, then just format the combobox value as you need
it. A simple example:
local i
private aSource
for i = 1 to 10
aSource.add(TRANSFORM(i, "999.9999")
endfor
combobox.dataSource = "Array aSource"
--
Todd Kreuter [dBVIPS]
| |
| Paul Van House 2005-11-30, 11:23 am |
| In article <1EjgGlY9FHA.1492@news-server>, andersond@ubinc.com says...
> I put the set decimals command in the onOpen procedure and it didn't work.
> What's plan B?
>
>
As Todd points out it needs to be issued before the form opens. Put it
in the area above the header in the WFM
--
Paul Van House
remove ".removeme" for e-mail replies
Radio/TV Software and Baseball Stat Software:
http://www.binxsoftware.com
Family Home Page: http://vanhouse.binxsoftware.com
Church Home Page: http://www.ashfordumc.org
|
|
|
|