Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Array fed in to a dropdown list in an HTA

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Array fed in to a dropdown list in an HTA
  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 >>
 Array fed in to a dropdown list in an HTA - 5/4/2007 8:23:53 AM   
  mcds99


Posts: 441
Score: 4
Joined: 2/28/2006
Status: offline
At the start of my HTA script area I have the following code the msgbox ListArray works great it shows the file names.

      

In the HTML area I want to load "ListArray" in to a drop down list.

      
It isn't working... Imagine that ;-)
Do I need to do this part in the VBScript area of the HTA or am I just missing something?

_____________________________

Sam

Keep it Simple Make it Fun KiSMiF
 
 
Post #: 1
 
 RE: Array fed in to a dropdown list in an HTA - 5/4/2007 8:55:56 AM   
  Skie

 

Posts: 58
Score: 0
Joined: 3/2/2006
Status: offline

      

(in reply to mcds99)
 
 
Post #: 2
 
 RE: Array fed in to a dropdown list in an HTA - 5/8/2007 12:46:18 AM   
  mcds99


Posts: 441
Score: 4
Joined: 2/28/2006
Status: offline
I couldn't get that to work I get a type missmatch on teamselect.

_____________________________

Sam

Keep it Simple Make it Fun KiSMiF

(in reply to Skie)
 
 
Post #: 3
 
 RE: Array fed in to a dropdown list in an HTA - 5/8/2007 1:09:36 AM   
  dm_4ever


Posts: 2723
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
This is a simple example using what Skie provided you.  Make sure the code you are using to create your array is providing you values.


      

_____________________________

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 mcds99)
 
 
Post #: 4
 
 RE: Array fed in to a dropdown list in an HTA - 5/8/2007 2:45:17 AM   
  mcds99


Posts: 441
Score: 4
Joined: 2/28/2006
Status: offline
OMG ! 8-O

It was the lack of "SUB window_onload" & "End Sub" I've not seen that bit of code before, but then I'm not to knowledgable
about scripting.

I'm doing this for the local Little league and Babe Ruth league no money involved, the experence is invaluble!

This code works great it reads the files in a folder, splits the path from the name, removes the path with a RegExp and displays
the list of files in a drop down list. Eventually a coach will be able to work with multiple teams, some of the coachs work with 3 or 4 teams,
I work with only 1 team ;-) but the kids are 2 and 0.


      

_____________________________

Sam

Keep it Simple Make it Fun KiSMiF

(in reply to dm_4ever)
 
 
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 >> Array fed in to a dropdown list in an HTA 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