以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]For Each 如何设置反向的遍历  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=174464)

--  作者:wangjh8888
--  发布时间:2022/1/17 12:04:00
--  [求助]For Each 如何设置反向的遍历
老师好
Dim Values As New List(Of String)
Dim Value As String
Values.Add("北京市")
Values.Add("上海市")
Values.Add("天津市")
For Each Value In Values
    Output.Show(Value)
Next 

请问问For Each 如何设置反向的遍历,使得输出顺序为:天津市,上海市,北京市

--  作者:绿火柴
--  发布时间:2022/1/17 12:27:00
--  
for i as #%@!#% to 0 step -1

next

--  作者:有点蓝
--  发布时间:2022/1/17 13:35:00
--  
要使用这种:http://www.foxtable.com/webhelp/topics/0225.htm