ArrayList / DirSearch in Version 6.50

Discussion in 'Questions (Windows Mobile)' started by klaus, Oct 23, 2008.

  1. klaus

    klaus Expert Licensed User

    Error with ArrayList / DirSearch in Version 6.50

    Hi Erel,

    With the attached code there is an error in version 6.50, but it works with version 6.30.

    Best regards.
     

    Attached Files:

    Last edited: Oct 23, 2008
  2. Erel

    Erel Administrator Staff Member Licensed User

    The first parameter passed to DirSearch should be the actual arraylist, not a string.
    The code should be:
    Code:
    Sub Button1_Click
        DirSearch(SketchDirs,AppPath)
        DirSearch(SymbolDirs,AppPath)
    End Sub
     
  3. klaus

    klaus Expert Licensed User

    Thank's Erel,

    Is this special to DirSearch and FileSearch because with other keywords like Control, AddEvent an so on the names are in quotes so I used by habit the the same spelling ?
    In version 6.30 it worked with the quotes.

    Best regards.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Yes, most of the keywords expect to receive a string (and therefore can handle more complex expressions like "Button" & i).
    Some keywords like DirSearch, FileSearch and Form.Polygon expect to receive the actual control without quotes.
    In the new version the parser works a little bit harder as it needs to add the module prefix where required.
     
  5. klaus

    klaus Expert Licensed User

    Thank you for the explanatios.
    Makes sense.

    Best regards.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice