INTERACT FORUM

Windows => Plug-in Development => Topic started by: cncb on March 24, 2008, 09:06:15 pm

Title: MJFilesAutomation.Sort2() Seems to Ignore Some Date Fields
Post by: cncb on March 24, 2008, 09:06:15 pm
The files Sort2() function seems to just ignore some date fields.  The standard Name, Date, etc. fields work ok but the specific date criteria ( [Date(year)], [Date(month)], and [Date(day)] )  seem to be ignored when used in this function??  Typing these directly into the Search box in MC works fine?
Title: Re: MJFilesAutomation.Sort2() Seems to Ignore Some Date Fields
Post by: Matt on March 24, 2008, 09:15:31 pm
Try escaping the parenthesis with a slash (/).

If that works, we should probably switch the program to do it for you automatically when calling Sort2(...).
Title: Re: MJFilesAutomation.Sort2() Seems to Ignore Some Date Fields
Post by: cncb on March 24, 2008, 10:18:33 pm
I tried "[Date/(day/)]" and it still doesn't seem to work.  Did I do this correctly?  I also tried a backslash with the same results.
Title: Re: MJFilesAutomation.Sort2() Seems to Ignore Some Date Fields
Post by: cncb on March 26, 2008, 11:26:17 am
Any chance to look at this, Matt?  Thanks.
Title: Re: MJFilesAutomation.Sort2() Seems to Ignore Some Date Fields
Post by: Matt on March 27, 2008, 12:14:39 pm
I can't reproduce any problem.

But looking closer at your examples, I noticed there's no space between "Date" and "(day)".  It should be:
Date (day)

Could it be that simple?
Title: Re: MJFilesAutomation.Sort2() Seems to Ignore Some Date Fields
Post by: Matt on March 27, 2008, 12:15:45 pm
As an aside, you might consider using the MF_DATE_DAY (and similar) defines from MJFields.h, which should be in the SDK.
Title: Re: MJFilesAutomation.Sort2() Seems to Ignore Some Date Fields
Post by: cncb on March 27, 2008, 12:29:16 pm
Could it be that simple?

Yes, it could be and is  :-[.  Thanks and sorry about that.