12-10-2021 10:30 AM
When I select a file using FileSelectPopup (whether a new file or the existing file) it always outputs 1. According to the documentation it's supposed to output a 2 if you select a new file. Does anyone know what might be going on here?
12-13-2021 02:55 AM
Can you post your code? FileSelectPopup behaviour depends also on Button label value, but it nevertheless should always return a correct value:
12-13-2021 08:55 AM
Okay, this makes more sense. I had tried multiple button label values, but my confusion seems to have been with the terminology of "new" and "existing" file. I thought the function was referring to the previously selected file vs. the new file selected (i.e. if you select the same file as before you would get 1 as the output and if you select a different file you would get 2).
Thank you so much @RobertoBozzlo, your answer really helped to clarify things!