xmac

printing number in accending and decending order simultaneously

3 posts in this topic

I'm trying to print 2 number inside a forloop. I'm not sure how to achieve this task .

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 ddecrement 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






'''' cscript vzb.vbs >400.txt"""""

There are 2 statements inside For where i and n is used.  for each run I want i to increase from 1 to 150 and n to decrease from 150 to 1 at the same time.

 

Thank you

Share this post


Link to post
Share on other sites



I'm trying to print 2 number inside a forloop. I'm not sure how to achieve this task .

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 ddecrement 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






'''' cscript vzb.vbs >400.txt"""""

There are 2 statements inside For where i and n is used.  for each run I want i to increase from 1 to 150 and n to decrease from 150 to 1 at the same time.

 

Thank you

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Something like that?

For i = 1 to 150
   TL1("HELLO" & i & "INCRESING" & i & ";" ) // In both the statement i should increment from 1 to 150 and  
   TL1("HELLO" & 151 - i &"INCRESING_I" & i & "DECRESING_N" & 151 - i & ";" ) //  n = 151 - i should ddecrement from 150 to 1
Next
...

 

Edited by jchd
Removed $ prefix I had put

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now