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]
