Re: Newbie question: why 2 uses clauses?



swansnow wrote:
Some things, the help doesn't seem very clear on...

What goes in the uses clause in the interface section, and what goes in
the implementation section?

Try to put as much as possible in the implementation section - this will reduce dependancy problems. As much as possible = everything you still get compiled.

Put the rest (and what the IDE generates for you) in the interface section.


.



Relevant Pages

  • Re: Opinions on approach, please...
    ... Write the where clause manually, ... MOST interface, with the original COBOL ISAM access commented out above it. ... I can certainly do it with dynamic SQL and MOST can build a WHERE statement ... application is doing lengthy sequential processing, how often, in what ...
    (comp.lang.cobol)
  • Re: Uses clause tool
    ... Arrange implementation uses clause to have one unit at a line. ... I have a tool to remove unused units, and move units to the implementation section. ... Note that Delphi will insist on having units appear in the interface section that aren't actually required for compilation. ... The tool will not sort units or do any kind of special formatting. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Confused about units
    ... Maarten Wiltink wrote: ... I echo Maarten's approbation - good finding. ... The interface uses clause contains units in which any item in this unit ...
    (comp.lang.pascal.delphi.misc)
  • Re: Tool to detect unused units
    ... This is the case with the uses clause in the project file. ... entries from the unit and forms list of the IDE ... To assure that all class definitions needed for the streaming support ... of the interface part of a unit containing a form or data module ...
    (borland.public.delphi.thirdpartytools.general)
  • C# 3.0: no additions to where clause? dang.
    ... I was hoping for increased functionality with the where clause in C# ... Using the new keyword 'var' would really allow us to take nice ... interface MyFunc, interface operator+=, interface get ... I want to AND/OR the conditions for the where clause together. ...
    (microsoft.public.dotnet.languages.csharp)