Sample from docs not working.

I'm new to scripting and I'm trying to test Simple Image Dialog.  However the image doesn't load.  I changed the URI in the example to C:\temp/test02.jpg which is a JPEG image that can be loaded in other apps.  Any suggestions on how to debug this problem?

Screenshot 2023-04-08 154749.png
304 x 135 - 9K

Comments

  • Richard HaseltineRichard Haseltine Posts: 100,842

    Use / not \ for path separators,\ is the escape symbol so you would  - if that is a literal quote - have given the path as C: tab emp/test02.jpg

  • Changing \ to / fixed the problem.  I assumed that \ worked because that was what was used in one of the examples.  Thanks for setting me straight.

  • Richard HaseltineRichard Haseltine Posts: 100,842

    Which sample was that? If it was in a string (and wasn't escaping something) that would need correcting.

Sign In or Register to comment.