ASP + Files + Most Recent

This is a discussion on ASP + Files + Most Recent within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I'm trying to make a little message board with asp, using vbscript, and I can't figure out how to sort ...

  1. #1
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972

    Question ASP + Files + Most Recent

    I'm trying to make a little message board with asp, using vbscript, and I can't figure out how to sort the posts from most recent/has most recent replies to oldest/oldest replies.

    If anyone has any ideas I would appreciate them! I'm stumped

    edit: I looked for an asp forum, but all I could find was ones for download...stupid me I'll look for a web scripting one...
    Last edited by JaWiB; 07-09-2003 at 02:41 PM.
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    How are the posts stored ? In a database, each in their own text file, or what?
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    Each in their own file, named by the time and date they are created...probably not the best way, but it's the only way I can think to do it...I don't know SQL or anything...
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Put the list of desired file attributes in an array, then sort that.

    But, learn SQL and get yourself connected to a database, it'll be easier in the long run

    http://beta.experts-exchange.com/Web..._20379176.html
    http://beta.experts-exchange.com/Web..._20266213.html
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  5. #5
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220

    i'm sorry, but it has to be said...

    ASP:
    ugh.

  6. #6
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    Thanks Hammer I think I can make something with the links you gave me...

    It's a pain to use dates since its formatted like 1/1/2002...i have to use something like


    varThisDay = DatePart("d", Date())

    Yes I'm sure SQL would be much easier, but I don't think my stupid free host supports it and I don't really plan on making web sites for a living
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  7. #7
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    You might do better by naming your files like:

    YYYY-MM-DD-HH-MM-SS-XX.txt

    That way they're easy to work with, and sometimes the OS will give them to you in the order you want anyway.

    (note: XX is something that represents < 1 second, simply to account for two new entries being created in a short time frame)
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  8. #8
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    heh well i will name them yyyymmddhhmmss

    actually i have not even been saving them as text files...they just end up without an extension which seems to work fine
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Create Copies of Files
    By Kanshu in forum C++ Programming
    Replies: 13
    Last Post: 05-09-2009, 08:53 AM
  2. Reading .dat files from a folder in current directory...
    By porsche911nfs in forum C++ Programming
    Replies: 7
    Last Post: 04-04-2009, 10:52 PM
  3. Folding@Home Cboard team?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 398
    Last Post: 10-11-2005, 09:44 AM
  4. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 04:30 PM
  5. Files not updating in folder
    By BobS0327 in forum Tech Board
    Replies: 4
    Last Post: 06-06-2005, 06:55 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21