Re: error -1584
Posted in 1999
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
---- you wrote: > Daniel Tendaj wrote: > > > > Contents of the module is: > > > > # > > define pl_t char(1) > > > > main > > end main > > # > > I don't remeber for sure but I think you cannot have a define outside of > main except in a GLOBALS statement or statement block. Sure you can Dude. If you want to define a variable that is accessible in any function you just define it at the top of the module to give it 'module' scope. > Also I thought the DATABASE statement at the top of each module was > manditory? No Dude. That's what's so powerful about 4GL! You don't even have to use it as a database dev tool. AB ---------------------------------------------------------------- Get your free email from AltaVista at http://altavista.iname.com
I really must start doing 4GL again. I'm getting too rusty. Apologies to Daniel et al. a_blonde@mindless.com wrote: > > ---- you wrote: > > Daniel Tendaj wrote: > > > > > > Contents of the module is: > > > > > > # > > > define pl_t char(1) > > > > > > main > > > end main > > > # > > > > I don't remeber for sure but I think you cannot have a define outside of > > main except in a GLOBALS statement or statement block. > > Sure you can Dude. If you want to define a variable that is accessible in any function you just define it at the top of the module to give it 'module' scope. > > > Also I thought the DATABASE statement at the top of each module was > > manditory? > > No Dude. That's what's so powerful about 4GL! You don't even have to use it as a database dev tool. > > AB > ---------------------------------------------------------------- > Get your free email from AltaVista at http://altavista.iname.com