Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996

Displaying Formatted Data

Question:
I have defined a field as Double in my Table to store prices. Then I bound my database to a grid. I would like to display the contents of the field in certain format such as #0.00, but it doesn't work. The data used to be displayed in brief format such as 8, 9.3, 23, etc, which I would like it to be display as 8.00, 9.30 and 23.00.

Answer:
Depending on the type of grid you are using, you can either do it manually with the Format$ statement, or use the built-in formatting properties of grids like Sheridan and Apex.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date