[fpc-pascal] using units in units...

2004-12-07 Thread Ron Weidner
I'm looking for a little syntax help please. How do you use units in a unit? The following doesn't work. unit unit_test; uses crt; interface function make_line(): String; implementation function make_line(): String; begin make_line := 'This is a string returned'; end; e

Re: [fpc-pascal] using units in units...

2004-12-07 Thread Vincent Snijders
Ron Weidner wrote: I'm looking for a little syntax help please. How do you use units in a unit? The following doesn't work. unit unit_test; interface uses crt; function make_line(): String; implementation function make_line(): String; begin make_line := 'This is a string retu

re: [fpc-pascal] using units in units...

2004-12-07 Thread David Emerson
You need to put your "uses" list inside either the interface or the implementation of the unit. You can even put different lists in the interface and implementation sections (though you can't list the same unit in BOTH lists). Usually the implementation section will have a longer uses list; the