XForms: fileSelector

Dick Middleton (dick@sqf.hp.com)
Tue, 17 Nov 1998 11:33:42 GMT

# To subscribers of the xforms list from Dick Middleton <dick@sqf.hp.com> :

> # 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 ?

Probably nothing. File selector ALWAYS shows directories.

Dick

-------------------------------------------------------------------------------

Dick Middleton
Phone: +44 131-331 7530
Fax: +44 131-331 7443 ( )
email: dickm@cheerful.com ( )
( )
( ) . ~ ~ ~ ~~ .
( ) _______
( ) |
. ~ ~ ~ ~~ . |
/O\
-------------------------------------( o )-------------------------------------
- I'd rather be soaring
_________________________________________________
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/