WAG warning!
Have an extra character field in the dbf/cursor. Scan the cursor and copy the contents of the numeric field into the character field if it is a number then delete the numeric field from the dbf/cursor or do a select from the cursor excluding the numeric field into another cursor which can then be copied to an Excel file.
HTH
John
John Weller 01380 723235 07976 393631
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Kurt Wendt Sent: 14 June 2016 21:03 To: profoxtech@leafe.com Subject: A Blank Value for a Number?
I know - it's a Crazy request. Trying to figure out the Easiest way to try
and do
this - and hoping to Avoid having to do more complicated solutions like
Office
Automation to manipulate an Excel file.
So - here's the deal. This system I work on - it outputs this Excel file.
And, in
the past - if there are certain records that have a Zero in a particular
column -
they would Manually wipe out the Zero - and also blank out several of the other fields in that Row.
But, the new request is to make those things happen automatically during process when the Excel file gets exported. So that they do NOT have to manually blank out certain fields. But, of course, therein lies the
problem. For
the other rows of data - this particular field is supposed to be a numeric value. And, AFAIK - there really is NO Way to have a DBF or Cursor that
has a
Numeric field - and yet have blank values in it.
As such, I suspect the answer is that this can't be done - to have a
numeric
data field hold any kind of blank data. They even suggested just a Dash.
But,
again - I figured it's not possible. However, I figured for the hell of it
- I would
post here - in case someone had an interesting insight that I hadn't
thought
of...
Kurt Wendt Senior Systems Analyst [GlobeTax_SecondaryLogo_TwoColor_Lo]https://www.globetax.com/ One New York Plaza - 34th Floor New York, NY 10004-1936, USA Tel. +1-212-747-9100 Direct +1-212-405-8246 www.GlobeTax.comhttps://www.globetax.com/
GlobeTax does not provide or offer, and this is not, tax, investment or
legal
advice. This email and any attachments hereto is intended only for use by
the
addressee(s) and may contain confidential information. If you are not the intended recipient of this email, please immediately notify the sender at
+1-
212-747-9100 and permanently delete the original and any copies of this email.
--- StripMime Report -- processed MIME parts --- multipart/related multipart/alternative text/plain (text body -- kept) text/html image/png
[excessive quoting removed by server]