RE: Accessing program variables across 4gl files in the same executable
Posted in 1998
>---------- From: Manish Hemrajani[SMTP:manishh@ems.att.com] >Sent: Thursday, March 12, 1998 6:21 AM >Is it possible to access program variables (i.e. variables declared >before "main" JL: No. They're file static variables in terms of C code. >don't confuse these with globals) JL: I'm not confused, but it appears you are; what you want are global variables. >across 2 or more 4gl >programs within the same executable (.4ge file). JL: I4GL GLOBALS are precisely variables which can be accessed across 2 or more I4GL source files within the same executable, which is apparently what you want. >Say for example I have one 4gl program containing the "main" and "end >main" which in turn calls functions which are declared in another 4gl >program. Can these 2 programs access a common set of variables (similiar >to "extern" variables in "C") JL: Yes, but only if they are GLOBALS. Why did you think that GLOBALS are not what you want? Yours in considerable puzzlement, Jonathan Leffler (jleffler@visa.com) #include <bother.ms-exchange.h>