Menu

#61 Path that contains a tilde (~) result in faulty control text

Version_1.3.0
closed
5
2012-09-15
2007-11-12
Ramon Smits
No

When calling FileUpload(..).Set(..) then string argument is processed incorrectly.

Input:
"S:\~localbuild\TestLicense.xml"

Output:
"localbuild\TestLicense.xml"

It seems the '~' character cannot be used in filenames.

Discussion

  • Jeroen van Menen

    Logged In: YES
    user_id=799177
    Originator: NO

    Hi Ramon,

    Thanks for your report! What happens if you select this directory manually? Does it result in the same behavior?

    Thanks, Jeroen

     
  • Nobody/Anonymous

    Logged In: NO

    What is your question exactly? If you mean manually selecting it when clicking on the browse button then yes that does work.

     
  • Jeroen van Menen

    Logged In: YES
    user_id=799177
    Originator: NO

    Hi,

    Should have written a test before asking you my question. And yes it fails on my machine too. I tracked down the issue and it has to do with using the SendKeys.SendWait. The ~ symbol (and {}[]+%^) are characters with a special function. In case of ~ this is translated by SendKeys as pressing the enter button......
    These characters are now escaped so a valid path\filename is entered in the file upload dialog.

    This will be in the next release.

    Thanks for the report,
    Jeroen

     
  • Nobody/Anonymous

    Logged In: NO

    Nice! I use this character allot to identify folders that are not part of 'standard' deployments. :)

     

Log in to post a comment.