XForms: fileSelector

Yann Guichoux (guichoux@shom.fr)
Tue, 17 Nov 1998 11:01:23 +0100

# To subscribers of the xforms list from Yann Guichoux <guichoux@shom.fr> :

Hi...
I still got some problems with making a "multi-Pattern" fileSelector.

I tried This :

...

filter=fl_set_dirlist_filter(ffilter2);

dirList=fl_get_dirlist(buffer,"*.*",&nbFiles,0);

...

/*******************************************************/
int ffilter2(const char *name,int type)
{
return ( (type==FT_FILE) &&(strstr(name,".ric") || strstr(name,".nc") )
);
}

my problem is that the ffilter2() function still return Directories.

so ...what's wrong with my piece of code ?

thanks for any help...
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/