Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


** FIXED ** Can you loop through an array in an Input box??

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> ** FIXED ** Can you loop through an array in an Input box??
  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 >>
 ** FIXED ** Can you loop through an array in an Input b... - 11/17/2006 7:00:01 AM   
  thepip3r

 

Posts: 16
Score: 0
Joined: 10/21/2006
Status: offline
If I have an array, can I loop through that array so that each entry of my array shows up as an option in an InputBox??


      

my code is more complex than this but i tried to simplify my problem to make it easier to understand.  Can anyone help?

< Message edited by thepip3r -- 11/17/2006 9:43:22 AM >
 
 
Post #: 1
 
 RE: Can you loop through an array in an Input box?? - 11/17/2006 9:42:53 AM   
  dm_4ever


Posts: 2640
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
Why not just use your array to populate a drop down list? Does it have to be an input box?

(in reply to thepip3r)
 
 
Post #: 2
 
 RE: ** FIXED ** Can you loop through an array in an Inp... - 11/17/2006 9:49:46 AM   
  thepip3r

 

Posts: 16
Score: 0
Joined: 10/21/2006
Status: offline
dm:  because i don't know if drop-down boxes are supported in client-side scripting...

Fixed here:

http://forums.devx.com/showthread.php?t=157336

< Message edited by thepip3r -- 11/17/2006 9:56:44 AM >

(in reply to thepip3r)
 
 
Post #: 3
 
 RE: ** FIXED ** Can you loop through an array in an Inp... - 11/17/2006 12:43:24 PM   
  Fredledingue


Posts: 383
Score: 0
Joined: 5/9/2005
From:
Status: offline
The text on an input box is limited to 2 or 3 lines. Listing an "aray" of car models won't work.

IE based interface might be needed for that purpose.

_____________________________

Fred

(in reply to thepip3r)
 
 
Post #: 4
 
 RE: ** FIXED ** Can you loop through an array in an Inp... - 11/20/2006 1:40:53 AM   
  ebgreen


Posts: 4969
Score: 31
Joined: 7/12/2005
Status: offline
There is no explicit line limit that I am aware of for the InputBox. Here is code that presents 5 distinct options and a header line for a total of 6 lines:


      

Having said that, and IE interface would still probably be better.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Fredledingue)
 
 
Post #: 5
 
 
 
  

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 >> ** FIXED ** Can you loop through an array in an Input box?? 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