Re: New Era Newbie Question
Posted in 1996
In article <4nn1ge$fqk@majestix.uni-muenster.de>, gunstho@asterix.uni-muenster.de (Dirk Gunsth'vel) writes: > Hi, all. > > I hope, you dont mind a newbie question here. I checked the manuals > but cant find satisfying answers. > > I started to write my first New Era 2.0 (Dos-Windows) applications. > My obversation is, that the code assigned to objects can be rather > long in real applications which seems to be bad to me for several > reasons including readability. Moreover the editor is not good > for writing large numbers of lines of code. > > Surely this CAN be solved by storing code in external 4GL files. > > My question now is if there is a standard way of deciding which > parts of code to store in the not .wif 4GL files and to handle > the fact that your application then consists of files coming from > the window painter and others that dont. > > Am I heading the right direction? Please help. > Dirk What we do specifically is to put functions and events that should be members of a particular window (called fred.wif) and that you would logically put in prebody into a file called fredx.4gl. Fredx.4gl includes fred.4gh and fred.wif/class extension you declare all the methods that appear in fredx.4gl. Include fredx.4gl in your project. DO NOT include fredx.4gl in fred.wif. We also have heaps of classes that are defined in 4gl's (rather than .wifs) but they are not derived from ixWindow. Question: has anyone made good use of ROFs? We are not using them and I am wondering if we are missing something? ---------------------------------------------------------------------- David Paulo, InForm Group Ltd.,PO Box 1444, Wellington, New Zealand. Ph: +64 4 472 0996 Fax: +64 4 473 2407 Email: david@inform.co.nz = What would you do if you knew that you could not fail = ----------------------------------------------------------------------