#define in 4gl
Posted in 2000
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
In article <38F25D8B.287D77D7@mindspring.com>, steve farris <nlymbo@mindspring.com> wrote: > Hello, > is there a #define (or equiv.) in 4gl. It doesn't seem to work > ex. > > #define NOTFOUND -1 > > Thanks! I am assuming that your questions are specific to 4GL and not D4GL. 4GL is a programming language with very easy adaptability and usage. There is no such syntax as #define. You define variables like: define i smallint define j,k integer define curr_num like yourtablename.column Hope this helps. Ram S. > -- > steve farris > flamenco/classical guitar site at http://www.mindspring.com/~nlymbo > > Sent via Deja.com http://www.deja.com/ Before you buy.
Hello, is there a #define (or equiv.) in 4gl. It doesn't seem to work ex. #define NOTFOUND -1 Thanks! -- steve farris flamenco/classical guitar site at http://www.mindspring.com/~nlymbo
steve farris wrote: > is there a #define (or equiv.) in 4gl. It doesn't seem to work > ex. > > #define NOTFOUND -1 Well, #define is a comment, of course. There is no standard way to do it, partly because # is a comment in I4GL. However, if you are disciplined and only use the other two comment conventions (-- and { }), you can preprocess your files into 4gl source code with the C pre- processor. The problem is that the C preprocessor messes up the line numbering in the code for you; it includes the bodies of all the headers in the file, leaving blank lines (typically) in lieu of the #defines. I did once implement a system using m4 which rather carefully preserved the original line numbering. I could let you have a copy if you ask nicely :-) -- Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net) Guardian of DBD::Informix v1.00.PC1 -- see http://www.perl.com/CPAN #include <disclaimer.h>
http://www.4glworks.com/dnld/fglpp.sh.Z, or have a look at the iiug software repository -- Ciao, Marco ______________________________________________________________________________ Marco Greco <marco@informix.com> Standard disclaimers apply! Informix faq http://www.iiug.org/techinfo/faq/informix.htm 4glworks http://www.4glworks.com Informix on Linux http://www.4glworks.com/ifmxlinux.htm