Jump to content
Fórum Script Brasil
  • 0

(Resolvido) Percorrer TList


robinhocne

Question

Não estou conseguindo fazer o seguinte.......

quando crio os TJvGradientHeaderPanel (pnHorario) eu dou um

lisHorario.Add(pnHorario);
então depois quero percorrer a lista e pegar algumas propriedades do pnHorario
for A := 0 to lisHorario.Count -1 do
      begin
         pnHorTop     := pnHorario(lisHorario[a]).Top;
         pnHorName  := pnHorario(lisHorario[a]).Name;
         pnHorCaption     := pnHorario(lisHorario[a]).Caption;
      end;
ai tá dando erro assim:
missing operator or semicolon

Edited by robinhocne
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

resolvi

for A := 0 to lisHorario.Count -1 do
      begin
         pnHorTop         := TJvGradientHeaderPanel(lisHorario[a]).Top;
         pnHorName      := TJvGradientHeaderPanel(lisHorario[a]).Name;
         pnHorCaption   := TJvGradientHeaderPanel(lisHorario[a]).Caption;
      end;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...