To preserve leading 0's in a spreadsheet type the number
with an apostrophe before it. For example, instead of typing
1234, type '001234. That will preserve the leading 0's.
If I don't care about formatting in the spreadsheet, I'll
add the leading 0's in the code that does the passing.
Typically I read the cell, convert to string, pad with the
appropriate number of 0's, then write to the database.
-Bill
On 5/31/2014 7:34 PM, Oogie McGuire wrote:
I'm tearing my hair out here.
I have a spreadsheet and the data was originally entered as 4 digits. I need to pass it to a database
system that requires 6 digits. I've tried formatting with 2 leading zeros but I still cannot get the
number to properly show up as 00<number>
Any ideas?
Eugenie (Oogie) McGuire
Desert Weyr, LLC - Black Welsh Mountain Sheep http://www.desertweyr.com/
LambTracker - Open Source SW for Shepherds http://www.lambtracker.com
Paonia, CO USA
--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.