How does SB transfer variables? RRS feed

  • Question

  • Hello everyone,

    I am updating my extension at the moment. There I got a small problem.

    A new command is called MoreDirectories.Create(path). path means the path for the new directory.

    This path will be used to create the directory. In my test I used "C:\test". The problem is, that this directory will never appear.

    I checked my C# code with the help of the C# community, but it looks fine.

    So, my question is, does SB decrypt the worth of a variable before it gives it to the extension? Or does SB do something else which could be the reason for this problem?

    Thanks in advance.

    Mit freundlichen Grüßen Timo Greetings Timo

    Tuesday, June 25, 2013 9:24 AM


  • The only thing is string encoding, depending on where you are entering the text - in the test code or from SmallBasic.  Try "C:\\test" or "C:/test" if it is in the code '\' has a special meaning for some encodings like unicode.

    Other-wise you will have to share some code and exactly what you do to see the problem.

    To test your extension in debug mode write a small application and reference your extension and SmallBasicLibrary.ll to test in VS with a debugger.

    Tuesday, June 25, 2013 5:49 PM