[Lazarus] How to use data from stringlist in another form.

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Mar 26 15:26:07 CET 2013


On Tue, 26 Mar 2013 14:14:00 +0000
appjaws <lazarus at appjaws.plus.com> wrote:

> I have 2 forms, form 1 calls form 2 on a buttonclick process.
> Form 2 loads a string list, operations are carried out and the 
> stringlist is saved.
> 
> The application opens with form 1, data is produced and stored in a Tedit
> 
> What I want to do is to compare the Tedit on form1 with data held in the 
> stringlist of form2. The problem is that the stringlist is not yet 
> created from the stringlist file.
> I have tried to load the stringlist from within form 1 but compilation 
> fails with :-
> TestProj1.lpr(21,1) Error: Error while compiling resources. Compile with 
> -vd for more details. Check for duplicates.
> 
> The messaged produced using -vd did not indicate any duplicates and 
> terminated the application with the same message.
> 
> I'm sure this must be possible but with my limited knowledge, I can't 
> see how.

The "Error while compiling resources" has nothing to do with
stringlists or any runtime logic.

What fpc version?
What platform?

Mattias




More information about the Lazarus mailing list