Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Array needed for dropdown menu...

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

 

 
  
  Printable Version
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> Array needed for dropdown menu...
  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 needed for dropdown menu... - 8/16/2007 9:14:09 PM   
  BadCam

 

Posts: 2
Score: 0
Joined: 8/16/2007
Status: offline
(I think I may have posted this in the incorrect category. Should this have been posted under WSH & Client Side VBScript? Can it be moved if it is in the wrong place?)  

Just to add:

I can have a go at doing this myself. If I could just get some help on how to set up the array. I don't mind fumbling through trying to get it running. After all, how else can I learn do this better myself? I can always come back here when I'm stuck. Thanks.


Hi VBS people

I'm not sure how best to explain what I require, but here goes:

I need an array (I assume) that can store the last seven days broken up into hour segments. I intend to use this array with Three dropdown menus in a .hta form.

The array will store the following information:

Each of the last seven days including today

The day for each of the last seven days including today - Format Mon, Tue, Wed ...
The month associated with the last seven days (bearing in mind that there may have been a change of month in the previous seven days) - Format Jan, Feb, Mar...
The hours for each of the last seven days except that the last (or first?) hour will be this current hour less one. - Format 00.00, 01.00, 02.00, 03.00...
ie it's 9.04PM as I write this, but the array will store each hour for the last seven days  starting (or ending?) at 8PM.

How can I display this in the form of a list with the ability to select any or all of the hourly segments?

The list would look like this (assuming today is Friday):

Sat, Aug, 11, 00.00
Sat, Aug, 11, 01.00
Sat, Aug, 11, 02.00
...
...
...

Fri, Aug, 17, 14.00
Fri, Aug, 17, 15.00
Fri, Aug, 17, 16.00

Have I explained this clearly enough? Please help. I believe I can do the rest of what I need, but this has me stumped.

Thanks very much in advance.

< Message edited by BadCam -- 8/23/2007 7:40:37 AM >
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> Array needed for dropdown menu... 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