开发者

Reverse Pascal loop like in VB

开发者 https://www.devze.com 2023-03-11 20:06 出处:网络
I have a \'For\' loop that displays pages in a Wizard. The loop looks like this: for i := 0 to nodes.开发者_如何转开发Length - 1 do

I have a 'For' loop that displays pages in a Wizard.

The loop looks like this:

  for i := 0 to nodes.开发者_如何转开发Length - 1 do 

  begin

  end;

How to reverse it to display last items first? In VB, I would add a Step -1 to the loop to start with the last item. How to accomplish the same behavior in Pascal?


for i := nodes.Length - 1 downto 0 do 
  begin

  end;
0

精彩评论

暂无评论...
验证码 换一张
取 消