Results 1 to 5 of 5

Thread: dim statements

Threaded View

  1. #1

    Thread Starter
    Fanatic Member wildcat_2000's Avatar
    Join Date
    Nov 2000
    Location
    Italy
    Posts
    727

    Resolved dim statements

    hi,

    can someone tell me why
    VB Code:
    1. Dim myDir as DirectoryInfo = New DirectoryInfo(Server.MapPath(PATH_DEST))
    2. Dim fileInfos() as FileInfo = myDir.GetFiles("*.hta")
    works while
    VB Code:
    1. Dim myDir as DirectoryInfo
    2. Dim fileInfos() as FileInfo
    3.        
    4. myDir = New DirectoryInfo(Server.MapPath(PATH_DEST))
    5. fileInfos() = myDir.GetFiles("*.hta")
    not?

    getting crazy on this one...
    Last edited by wildcat_2000; Nov 26th, 2004 at 04:54 AM.
    When your car breaks down,
    close all windows and retry

    => please rate all users posts! <=

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width