LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

MultiFileSelectPopup not displaying files instantly when filetype is changed

Hello,

 

I'm having a problem using the MultiFileSelectPopup. I'm using Labwindows/CVI 8.5.

 

The problem is: I try to support different file types for my application. But when I select a different file type the files are not displayed instantly. The file browser window simply stays white.

I'm calling it like this: MultiFileSelectPopup(folderOpen, "*.clf","*.clf;*.pdf;*.kml", Dialogues_Open_Data_File, 0, 0, 1, &numFiles, &fileList);

 

Default file type is CLF. When I load up the popup all CLF files are displayed correctly, but when I change to e.g. PDF there aren't any files in the display. However the files are displayed after I switch out of the folder and go back in.

 

Is there anything I can do to fix this behaviour?

0 Kudos
Message 1 of 4
(3,787 Views)

Hi Excaliburn,

 

I tried to reproduce your problem, but it worked fine on my computer.

This is what I wrote:

 

void main(void)
{
    /*
     * Local Variable Declarations:
     */

    int numFiles;
    char** fileList;
   
   
    MultiFileSelectPopup("", "*.cws","*.cws;*.c;*.ini", "Test", 0, 0, 1, &numFiles, &fileList);
}

 

I also tried with different extension types and folders, but it always worked fine.

 

Maybe I didn't understand exactly what you mean. If that is so, then please give me some more detail.

 

Regards, 

0 Kudos
Message 2 of 4
(3,761 Views)

Hi,

 

I have the same problem.

 

I found out that it only happens when you use the Excel Report instrument in order to access an xls file.

 

The MultiFileSelectPopup works fine at start but after creating a report file it fails as you described here.

 

Any solution?

 

I'm using Labwindows/CVI 8.5.

 

Thanks.

 

 

0 Kudos
Message 3 of 4
(3,550 Views)
Found a solution:   http://digital.ni.com/public.nsf/allkb/9ABC70E8B641B60686256DEA005C7A49  Why Don't FileSelectPopup or MultiFileSelectPopup Dialogs Refresh Files Correctly?
0 Kudos
Message 4 of 4
(3,523 Views)