INTERACT FORUM
Windows => Plug-in Development => Topic started 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?
-
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(...).
-
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.
-
Any chance to look at this, Matt? Thanks.
-
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?
-
As an aside, you might consider using the MF_DATE_DAY (and similar) defines from MJFields.h, which should be in the SDK.
-
Could it be that simple?
Yes, it could be and is :-[. Thanks and sorry about that.