Ah, I've seen the light now. Thanks.
________________________________________
From: [email protected] [[email protected]] on behalf of 
Paul McNett [[email protected]]
Sent: Wednesday, April 25, 2012 3:27 PM
To: Dabo Users list
Subject: Re: [dabo-users] Precision Value in Grid Column

On 4/25/12 12:19 PM, Ed Leafe wrote:
> On Apr 25, 2012, at 2:11 PM, RUSSELL Thomas wrote:
>
>> The code compiles and runs but does not give me the 4 point precision I am 
>> looking for.
>
>       Perhaps it is the formatting in your function? You have:
>
> def getDisplayAmount(self):
>         return "%.4D" % self.Record.amount
>
> Try changing it to
> def getDisplayAmount(self):
>         return "%.4f" % self.Record.amount

Also I notice you are calling the same virtual field function for every virtual
field. Fine for testing as long as you realize you'll need one different 
function for
every virtual field. However, your virtual field function references
self.Record.amount when amount isn't a valid field name in your data structure.

Paul


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

________________________________
CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
privileged. If you are not a named recipient, please notify the sender 
immediately and do not disclose the contents to another person, use it for any 
purpose or store or copy the information in any medium.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/3eb5c64f2911f841a886ac1d5ea8c356ba8...@041-db3mpn1-025.041d.mgd.msft.net

Reply via email to