Jump to content

Instrução FOR não funciona


jeanribeiro87

Recommended Posts

Prezados, sempre que utilizo a instrução for, ele só me retorna o valor final. Segue exemplo:

 

var

  I: Integer;

begin

  for I := to 10 do

  begin

    ShowMessage(IntToStr(I));

  end;

end;

 

Nesse caso ele só vai me retornar a mensagem com o número 10, ele não exibe o "caminho" até chegar na contagem "10".

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
Reply to this topic...

×   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.

×
×
  • Create New...