Re: New Era Newbie Question
Posted in 1996
In article <4nn1ge$fqk@majestix.uni-muenster.de>, gunstho@asterix.uni-muenster.de says... > >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. Other than having your MAIN in a separate 4gl for a variety of good reasons (using RECORD LIKE is just one), there isn't anything that would be considered "standard." So far, I've moved repeated blocks of code, prepared statements and the NEW'ing of objects that I re-use out of my wif's. None of this really gets the wif's down to size though. Most of the space in them is taken up with the window constructor. If your windows tend to be similar, templating your own basic window class (as shown in the NEwEra II class book) would split the bulk among two wif's, one of which would be reusable.