Accessings individual files in files collection

Author Message
arunvellat

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 5/16/2005
  • Location: India
  • Status: offline
Accessings individual files in files collection Monday, May 16, 2005 11:02 PM (permalink)
0
Hi all,

how can I access individual files in the files collections of the Folder object (FileScriptingObject) using index no. ? I'm using asp with vbscript. I do not want to use the For...Each loop . I want to get the second file by saying something like folder.file(2) or folder.file.item(2) . However, neither of them work . So , how do I do that ? Please do reply soon (its kinda urgent!)

Thanks
 
#1
    kirrilian

    • Total Posts : 629
    • Scores: 3
    • Reward points : 0
    • Joined: 3/15/2005
    • Location:
    • Status: offline
    Re: Accessings individual files in files collection Tuesday, May 17, 2005 3:36 AM (permalink)
    0
    the only way i know to go through a collection returned by fso is with a "for each" loop.
     
    #2

      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