LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

FileSelectPopup not outputting correct selectionStatus

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?

0 Kudos
Message 1 of 3
(980 Views)

Can you post your code? FileSelectPopup behaviour depends also on Button label value, but it nevertheless should always return a correct value:

  • With Load and Select you can only point to existing files and it correctly always returns 1
  • With Save and Ok you can treat new or existing files and it returns 1 or 2 accordinglyt


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(945 Views)

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!

0 Kudos
Message 3 of 3
(936 Views)