HP3000-L Archives

May 2000, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Wed, 10 May 2000 19:33:17 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (35 lines)
I trying to use an application ready buffer (ARB) with VPLUS to format
dates.  Currently have only US users and the date fields are defined as
MDY.  Now I am in the process of installing the same package in Europe
where they want to see the dates in DMY format.  I thought, easy, I'll
just copy the forms file and change the date formats to DMY for the
Europe forms file and use ARB buffers so that the code will treat the
field as YYMMDD and let the ARB buffer format it accordingly.

Problem:  This works great as long as you have data in the date field
when trying to display the form.  If you pass the buffer into the
VPUTBUFFER and have spaces in the date field (ie. there is no date)
then you get an error condition (flagged in the BUFFERSTATUS word of
COMAREA) and the remaining data on the form is not displayed.

Example:

Screen has 3 fields  CUST_NAME, DATE_LAST_UPDATED, DESCRIPTION

If I pass a valid date all 3 fields are displayed.

If I pass no date Only CUST_NAME is displayed DATE_LAST_UPDATED and
DESCRIPTION will be blank even though data was passed for DESCRIPTION.

If I turnon the VPLUSARBTRACE you can see that it gets to field 2 and
stops with an conversion error.

Is there a way to tell VPLUS to continue with the buffer move even if
errors are encountered?  Is there a special value that you need to pass
to indicate that there is no date?



Sent via Deja.com http://www.deja.com/
Before you buy.

ATOM RSS1 RSS2