Hi,
Need fast help pls:
Format (1 "###,###.##") = "1" <<<<----- OK!
Format (0, "###,###.##") = "" <<<<----- WHY?
How can I make this work with Zero?
I need to use Format, otherwise it will be a time consuming work to process
0 in a If of some kind.
--
Thanks in advance
Ali Eghtebas Sweden 6 1230
Ali Eghtebas wrote: Format (1 "###,###.##") = "1" <<<<----- OK!
Format (0, "###,###.##") = "" <<<<----- WHY?
How can I make this work with Zero?
Format (0, "###,##0.##") = "1"
--
Greetings
Jochen
Do you need a memory-leak finder ? http://www.codeproject.com/tools/leakfinder.asp
Hi Ali, Jochen,
As Jochen demonstrated, you need a zero in every position where
you require a digit. The '#' in the format specification says 'put a digit
here if the value requires it but if not use a space'. The '0' specifies
either the number's digit or a zero.
So "###,###.##" means give me nothing if the number is zero.
Also, if you want your decimal places, you'd use "###.##0.00"
Regards,
Fergus
Format(0, "###,###.##,##0;;\0")
Thank you all for the quick replies. I really appreciate it!
--
Regards
Ali Eghtebas Sweden
* Ali Eghtebas schrieb: Need fast help pls:
Format (1 "###,###.##") = "1" <<<<----- OK!
Format (0, "###,###.##") = "" <<<<----- WHY?
How can I make this work with Zero?
Try this (untested): 'Format(0, "###,##0.##")'.
--
Herfried K. Wagner
Microsoft MVP
<http://www.mvps.org/dotnet> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: G.Esmeijer |
last post by:
Friends,
I would like to read a text file (fixed length formaated) really fast and
store the data into an Access database (2003).
Using the streamreader and reading line by line, separating the...
|
by: Ali Eghtebas |
last post by:
Hi,
Need fast help pls:
Format (1 "###,###.##") = "1" <<<<----- OK!
Format (0, "###,###.##") = "" <<<<----- WHY?
How can I make this work with Zero?
|
by: Ali Eghtebas |
last post by:
Hi,
Need fast help pls:
Format (1 "###,###.##") = "1" <<<<----- OK!
Format (0, "###,###.##") = "" <<<<----- WHY?
How can I make this work with Zero?
|
by: hstagni |
last post by:
Where can I find a library to created text-based windows applications?
Im looking for a library that can make windows and buttons inside
console.. Many old apps were make like this, i guess
...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |