Re: DB Definition Reference
Posted in 1996
Mark R. Ainis wrote: } } ----------- Posted news begins ---------------- } Dear netters, } } We have an application that consists of Informix 4gl programs on our HP machine. } In all of the source codes, we have record declarations that reference } current database table definitions using the LIKE key word. A sample of } the source codes is attached below. The problem arises during compiling. } The compiler must know the database name explicitly specified in the fi } rst line of the codes in order to define the record definitions. Is there a } known way of eliminating the hard-coded database name in the source such as } passing the name to compiler during compilation? } } Thanks in advance. } (snip) } } ----------- Posted news ends ---------------- How about passing the database name as an argument to the main program (or ask the user to select a database (using a form or a prompt statement)? As you know the DATABASE statement _can_ be used with a program variable. Klean