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

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


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

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


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
×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date