|
-
Jun 4th, 2013, 10:55 PM
#1
Thread Starter
Member
[RESOLVED] How to make Listview not to truncate trailing zeroes after decimal
Hello,
I made a program to import data from Excel spreadsheet.
It seems everytime datas with trailing zero will be truncated.
For eg.
1245.60 will turn out as 1245.6
1245.61 appears ok - 1245.61
1245.00 - 1245
I want 1245.00 and 1245.60 to turn out as it is.
Thanks,
-
Jun 4th, 2013, 11:14 PM
#2
Re: How to make Listview not to truncate trailing zeroes after decimal
well the listview only displays strings, so it's not the listview that's truncating the trailing 0, but rather most likely your code that's reading the data... even still when you add it to the listview, just use Format$ to format it to the correct display value.
-tg
-
Jun 5th, 2013, 12:51 AM
#3
Thread Starter
Member
Re: How to make Listview not to truncate trailing zeroes after decimal
Found the solution - Format Cells in the source excel file to Text or make it non formatted.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|