Jump to content
refesi

Delphi 10.3 não reconhece a classe TTreeNode

Recommended Posts

Bom dia, estou começando a aprender o Delphi e fui testar o objeto 'TreeView' e deu erro: 'Undeclared identifier 'TTreeNode' at line 30 (30:12)', na linha: 'var Node : TTreeNode;'. O formulário só possui dois objetos nativos: 'TTreeView' e 'TButton'. Abaixo o código completo.

Obrigado pela ajuda.

 

//////////////////////////////////////////////////////////////////

unit Unit1;

 

interface

 

uses
  System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
  FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
  FMX.Controls.Presentation, FMX.StdCtrls, FMX.Layouts, FMX.TreeView;

 

type
  TForm1 = class(TForm)
    TreeView1: TTreeView;
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

 

var 
  Form1: TForm1;

 

implementation

 

 {$R *.fmx}

 

procedure TForm1.Button1Click(Sender: TObject);

 

var Node : TTreeNode; //<--- O erro corre aqui

 

begin

 

end;

end.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.