Data conversion error on screen.
Chris Sharman
chris.sharman@ccagroup.co.uk
Tue, 21 Aug 2001 12:02:24 +0100
>CREATE-DATE of OD-RECORD is defined as "packed *9".
>TEMPORARY T-HOLD-CREATE-CATE is defined as a DATE field.
>TEMPORARY T-CREATE-DATE DATE
>FIELD T-CREATE-DATE NOID FORMAT DDMMYY SEPARATOR "/" DISPLAY NOLABEL
>LET T-HOLD-CREATE-DATE = CREATE-DATE OF OD-RECORD
>This line seems to generate a "data conversion error" which appears
>as an error message when the screen is displayed. Ie moving from a
>Packed field to a date field. In debugger mode, values move okay,
>but the screen display has the error.
>LET T-CREATE-DATE = T-HOLD-CREATE-DATE
>DISPLAY T-CREATE-DATE
>Error message appears on screen...
Error messages typically only show when Quick next prompts.
Data conversion errors can be hard to run down.
I'd look at the actual values of the data, and whether your dates include
centuries or not.
Use:
info ="create-date="+ascii(create-date of od-record) now response
info ="t-hold-create-date="+ascii(t-hold-create-date) now response
info ="t-create-date="+ascii(t-create-date) now response
to nail down what's actually going on.
Chris
-----------------------------------------------------------------------
Any views expressed in this message are those of the sender and not
necessarily those of CCA Group. The unauthorized use, disclosure,
copying or alteration of this message is forbidden. The contents of
this message may be confidential and/or privileged, copyright CCA Group
and are intended solely for the use of the individual or entity to whom
they are addressed. Whilst this message has been scanned, CCA Group
cannot guarantee that it is virus free or compatible with your systems
and accepts no responsibility for any loss or damage arising from its
use. The recipient is advised to run their own anti-virus software. If
you receive this message in error please contact
postmaster@ccagroup.co.uk immediately, destroy any copies and delete it
from your computer systems.