HELLO DEAR ITS VERY URGENT Q:=> WHEN I USED DIR()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amitkumar19
    New Member
    • Feb 2008
    • 4

    HELLO DEAR ITS VERY URGENT Q:=> WHEN I USED DIR()

    Hello All Of U.
    Hey I Dont Understand What Happen I Declear Dir(path) Used In Vb6 Code Then It Give The Error Msg Wrong No Argument Or Invalid Property Assigned.
    Path Is String Var & I Assign Value On Path.
    1. I Add Refrence
    A. Microsoft Runtimf Script. Used In My Prg.


    Anybody Can Help.
    Thanks
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    try to use like this

    [code=vb]Dir ("d:\debasis ")[/code]

    Comment

    • devonknows
      New Member
      • Nov 2006
      • 137

      #3
      Ive added MSR reference to a project but the only way i can get it call that error is if i have too many arguments inside the Dir(), Ive run a sample app with the code below, n it seems to work, give it a try, if not could you post the code around it, might help us get a little more insight

      If Possible could you show how the path is assigned to the variable.

      [code=vb]
      If Not Dir("C:\Windows ", vbDirectory) = vbNullString Then
      Call MsgBox("I have found the directory")
      Else
      Call MsgBox("I Cannot Find The Directory")
      End If
      [/code]

      Hope this helps you
      Kind Regards
      Devon

      Comment

      • amitkumar19
        New Member
        • Feb 2008
        • 4

        #4
        Originally posted by debasisdas
        try to use like this

        [code=vb]Dir ("d:\debasis ")[/code]

        when i plased control dirlistbox control
        then dir() not used give error msg
        i remove this control then it work
        what happen

        Comment

        • Killer42
          Recognized Expert Expert
          • Oct 2006
          • 8429

          #5
          I think it would help if you showed us the code.

          Comment

          Working...