Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel---> dbf (dBase4) - how to get decimals in numbers?
Message
From
04/12/2005 22:31:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Excel---> dbf (dBase4) - how to get decimals in numbers?
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01074817
Message ID:
01074817
Views:
65
I have a spreadsheet that I am "exporting" as a dbf file using "Save As" in Excel and selecting "dBase4" as the output file type.

Aside from the fact that 1 or some columns seem to cause an error when opening in VFP (a subset of the columns, when saved as, opens OK), none of the numeric fields with decimals is showing any decimals, ending up as "N(5,0)".

I am using the following to set the column format:
oSheet2.Cells(1, xx).NumberFormat = "##,##0.00_);[Red](##,##0.00)"
and I have even gone to the trouble of filling the first data row with the value 0.01 before doing the "Save As".

Anyone know how I can get decimals reflected properly?

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform