Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Jonathan Leffler — — source: Informix-list mailing list archive (1991-1998)
David Murray wrote:
>
> I'd like to be to make a 4GL function I'm creating be as reusable as
> possible. In order to do this I'd like to make any 'LET' statements in
> the function generic by allowing the left operand to be a variable. Is this
> possible?
>
> I'D LIKE
>
> LET gr_product.code = variableX -- Traditional
> way of assigning a value to variable
>
> TO BECOME
>
> LET variableY = 'code' -- What I'm trying to do.
> LET gr_product.variableY = variableX
>
> LET variableZ = "LET gr_product.code = 123456" -- OR this maybe
>
> EXECUTE variableZ
Your 'or' applies; impossible.
There are a variety of reasons, some syntactic, but fundamentally,
you can't do that in C directly (you'd have to mess about with
pre-initialized data structures using the offsetof() macro), etc.
You need a much higher-level language to do that sort of thing;
or a much lower level (assembler) one.
--
Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net)
Guardian of DBD::Informix v0.60 -- see http://www.perl.com/CPAN
#include <disclaimer.h>
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.