Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Format the item in Column (Fix 2 decimal point)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Format the item in Column (Fix 2 decimal point)

 Post Reply Post Reply
Author
Message
cybeh View Drop Down
Groupie
Groupie
Avatar

Joined: 27 December 2005
Location: Malaysia
Status: Offline
Points: 76
Post Options Post Options   Thanks (0) Thanks(0)   Quote cybeh Quote  Post ReplyReply Direct Link To This Post Topic: Format the item in Column (Fix 2 decimal point)
    Posted: 20 July 2006 at 4:33am
Hi,

May I know how can I fix the format of an column value? like
2.00 <- 2 decimal point?

Please advice.

Back to Top
6ero View Drop Down
Newbie
Newbie


Joined: 19 August 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote 6ero Quote  Post ReplyReply Direct Link To This Post Posted: 06 April 2007 at 2:22pm

I use the "value" property to store the number and the "caption" property to display my own formatted string of that number.

Example:

Set Item = Record.AddItem(total)
Item.caption= FormatCurrency(total, 2)

This will sort fine also.

I hope this helps anybody trying to do the same thing.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.227 seconds.