Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


syntax question - For i=

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,57046
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> syntax question - For i=
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 syntax question - For i= - 2/24/2008 12:02:13 PM   
  yfki

 

Posts: 70
Score: 0
Joined: 12/12/2007
Status: offline
How can I use a for loop to have this concatenate all 9 strings, and is that even the best way to do this?

           str1 = Read("1")
           str2 = Read("2")
           str3 = Read("3")
           str4 = Read("4")
           str5 = Read("5")
           str6 = Read("6")
           str7 = Read("7")
           str8 = Read("8")
           str9 = Read("9")
 
 
Post #: 1
 
 RE: syntax question - For i= - 2/24/2008 2:29:29 PM   
  dm_4ever


Posts: 2366
Score: 38
Joined: 6/29/2006
From: Orange County, California
Status: offline
What is this Read("") ??

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to yfki)
 
 
Post #: 2
 
 RE: syntax question - For i= - 2/24/2008 6:27:10 PM   
  ehvbs

 

Posts: 2063
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
Hi yfki,

try

Dim sAll : sAll = ""
For nIdx = 1 To 9
       sAll = sAll & Read( CStr( nIdx ) )
Next

Good luck!

ehvbs

(in reply to yfki)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> syntax question - For i= Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts