[Lazarus] Which program type to select for cron usage?
Michael Van Canneyt
michael at freepascal.org
Mon Oct 19 14:01:56 CEST 2015
On Mon, 19 Oct 2015, Bo Berglund wrote:
> On Mon, 19 Oct 2015 12:28:55 +0200 (CEST), Michael Van Canneyt
> <michael at freepascal.org> wrote:
>
>> For anything that has a longer lifetime and is likely to change over the years,
>> you should pick 3.
>
> Thanks, I did so and started coding. :)
>
> Now I ran into a problem which I cannot say belongs to the selection
> of type of program or Lazaus itself or somethiong else:
>
> I am building a communications class that will hook into the existing
> Delphi sources.
> I write something like this:
>
> TSSController = class
> private
> FComm: TSSConnection; //Defined in Delphi unit
> public
> Constructor Create(ConfigFile: string);
> Destructor Destroy; override;
> end;
>
> destructor TSSController.Destroy;
> begin
> FComm. <== cursor right after the period
> inherited Destroy;
> end;
>
> Where TSSConnection is declared in one of the Delphi files located in
> the same directory as all other sources (the project dir).
>
> When I enter the period after FComm I expected Lazarus to autocomplete
> with the valid identifiers, in this case Free, but nothing happens...
>
> My test project where I checked connectivity to the GPIO did not
> behave like this, but it was a GUI project. What did I do wrong?
Did you add the files to the project in the project inspector dialog?
That they are in the same directory as the project is not enough.
Michael.
More information about the Lazarus
mailing list