Re: 4GL Question (Either really easy or impossible, you decide) ;*)
Posted in 1999
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>