From Robert Minter:
Subject: Re: Two puzzling situations (C function - 4GL)
To: cbnewsd.cb.att.com!aec@uunet.uu.net
Date: Tue, 5 Apr 1994 08:40:31 -0700 (PDT)
From: Robert Minter <rob>
In-Reply-To: <Cnqtn9.7MM@cbnewsd.cb.att.com> from "arthur.e.cooper" at Apr 4, 94 04:25:54 pm
X-Mailer: ELM [version 2.4 PL2]
Content-Type: text
Content-Length: 1591
>From arthur.e.cooper:
*
*
* Sending this message again. This time, I've given a little
* more detail in the first situation scenario.
*
* I'm developing a 4GL application in the C environment (i4gl)
* and have produced two interesting and straneg situations
* since adding a C function. The function accesses another db
* for (mailing) address data.
*
* First situation: Doing a query. After entering info. into
* the first field and hitting return or ESC key, the cursor
* moves back to the left field delimiter erasing the entry
* from the screen. Input is successful on the second try.
* What is causing this??
Do you have the VERIFY option on in the FORM? This will cause you to enter
twice the same data.
*
* Second situation: Data is brought in from the other db
* (name, company, dept. address, telephone, etc) and fields
* are populated. In the process some field delimiters are blown
* away. Each argument is terminated with \\0 eliminating trailing
* extraneous characters before leaving the C function.
* Why is this happening?
Sounds like you have embedded '\\n' in the variables. Does the same thing
trying to display wordwrapped var's into non-wordwrapped fields if there
is hard-returns in it.
Robert Minter |Data Systems Support| \\\\\\_///
Programmer, Software Development | Orange, CA | ( _ _ )
internet: rob@dssmktg.com | Tel: 714.771.0454 | (| ^ |)
bangpath: uunet.uu.net!dssmktg!rob| Fax: 714.771.3028 | \\`-'/
#include <disclaimer.h> \\_/