-1
我试图从1到150打印范围从1到150以及一些文本。 即第一个范围是从升序1到150,第二个是从150降到1. 我可以打印升序,但我不知道如何按降序进行。使用循环递增和递减数字
Set xml = CreateObject("Microsoft.XMLHTTP")
For i = 1 to 150
TL1("HELLO"&i&"INCRESING"&i&";") // In both the statement i should increment from 1 to 150 and
TL1("HELLO"&n&"INCRESING_I"&i&"DECRESING_N"&n&";") // n should decrement from 150 to 1
Next
Set xml = Nothing
Function TL1(cmd)
xml.Open "GET", "http://127.0.0.1:2024/TL1?"&cmd, False
xml.Send
TL1 = xml.responseText
WScript.Stdout.Write cmd & vbCrLf
End Function
所以基本上在for语句后。我应该增加,n应该减少。有没有办法在同一个循环中添加这个n?
代替仅仅使用我的,使用150 - 我在第二个TL1() –
@罗伯特阿尔特曼,实际上它应该是'151 - 我',因为'我'从1开始 –
@VictorMorae s的touche先生。接得好! –