Using the CommonDialog control, I need to display a number of files determined by the users selection.
The network folder containing the files contains a csv for each day of the year and the filename is made up from the date as "yymmdd.csv"
My aim is to create a filter that (a) only displays dates that fall on a weekend and (b) only display dates in the month(s) selected by the user with an option to display all weekends throught the year (i.e. all months).
I have got this working insofar as I can get the CD control to display weekends for an individual month but if the user selects all weekends throughout the year, then the CD control only displays up to "060325.csv"
I think the problem is with the length of the filter that I'm constructing but can't find anything on the web or at MS relating to this.
Does anybody know if there is a maximum length for the filter string or can anybody suggest a workaround?
Thanks
Alan
[gray]Experience is something you don't get until just after you need it.[/gray]
The network folder containing the files contains a csv for each day of the year and the filename is made up from the date as "yymmdd.csv"
My aim is to create a filter that (a) only displays dates that fall on a weekend and (b) only display dates in the month(s) selected by the user with an option to display all weekends throught the year (i.e. all months).
I have got this working insofar as I can get the CD control to display weekends for an individual month but if the user selects all weekends throughout the year, then the CD control only displays up to "060325.csv"
I think the problem is with the length of the filter that I'm constructing but can't find anything on the web or at MS relating to this.
Does anybody know if there is a maximum length for the filter string or can anybody suggest a workaround?
Thanks
Alan
[gray]Experience is something you don't get until just after you need it.[/gray]