Thank you Vincent.
--
From: "Vincent Snijders" <[EMAIL PROTECTED]>
Sent: Monday, July 21, 2008 10:22 AM
To: "General mailing list"
Subject: Re: [Lazarus] TStringList error
> Bob K. schreef:
>> I'm getting th
Thank worked. Thank you Cesar.
bob k.
--
From: "Cesar Romero" <[EMAIL PROTECTED]>
Sent: Monday, July 21, 2008 10:02 AM
To: "General mailing list"
Subject: Re: [Lazarus] TStringList error
> This is not a error, as yo
Bob K. schreef:
> I'm getting the error: *unit1.pas(48,3) Warning: Local variable "List"
> does not seem to be initialized*
>
> Here's the code (which used to work):
Then you were unbelievable lucky.
list := TStringList.Create is missing.
If it used to work, then you the uninitialized variabl
This is not a error, as you can see is a warning.
The erros that you are not creating a instance of TStringList.
Before use list you should create the object.
List:= TStringList.Create;
try
// your code here
finally
List.Free;
end;
Bob K. escreveu:
> I'm getting the error: *unit1.pas(48,3)
I'm getting the error: unit1.pas(48,3) Warning: Local variable "List" does not
seem to be initialized
Here's the code (which used to work):
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs,
ZConnection, ZDataset, db, DBGrid