Array needed for dropdown menu...

Author Message
BadCam

  • Total Posts : 2
  • Scores: 0
  • Reward points : 0
  • Joined: 8/16/2007
  • Status: offline
Array needed for dropdown menu... Thursday, August 16, 2007 10:14 PM (permalink)
0
(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 on Thursday, August 23, 2007 8:40 AM>
 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • 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
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9