Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Whats wrong with this ?
Fri, Aug 9 2013 2:44 PMPermanent Link

kamran

Hi

I cannot compile

Error is:  "E2003 Undeclared identifier: 'ftString'"

Code is:

var i:integer;
   TypeOfData:string;
begin
   for i:=0 to datafrm.tbProduct.FieldCount-1 do
   begin
      if datafrm.tbProduct.Fields[i].DataType = ftString then TypeOfData:='ftString';
   end;

Regards

Kamran
Fri, Aug 9 2013 3:25 PMPermanent Link

Raul

Team Elevate Team Elevate

My guess is that you're missing the DB unit from uses clause (where ftString is actually defined)

Raul

kamran wrote:
I cannot compile

Error is:  "E2003 Undeclared identifier: 'ftString'"

Code is:

var i:integer;
   TypeOfData:string;
begin
   for i:=0 to datafrm.tbProduct.FieldCount-1 do
   begin
      if datafrm.tbProduct.Fields[i].DataType = ftString then TypeOfData:='ftString';
   end;

Regards

Kamran
Image