![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Установка фильтра по полю даты в ApolloTable
Alex_74 © (2003-08-06 14:16:00)
Поможите плиз!!
Никак не могу установить фильтр по полю содержащему дату в ApolloTable, есть кто из спецов кто знает как это грамотно сделать?
Семен Сорокин (2003-08-08 12:11:00) [1]ушло 350к, архив zip.
А по теме посмотри SetDateFormat:
Any one of the following TApolloDateFrmt enumerated types:
dfAmerican 0 "MM/DD/YY"
dfAnsi 1 "YY.MM.DD"
dfBritish 2 "DD/MM/YY"
dfFrench 3 "DD/MM/YY"
dfGerman 4 "DD.MM.YY"
dfItalian 5 "DD-MM-YY"
dfSpanish 6 "DD-MM-YY"
dfWinDefault 7 (Windows default setting)
If SetCentury is True, the century digits will precede the year digits in each of the formats shown above.
Delphi Example
ApolloEnv1.SetCentury( True ); ( dfGerman)ушло 350к, архив zip.
А по теме посмотри SetDateFormat:
Any one of the following TApolloDateFrmt enumerated types:
dfAmerican 0 "MM/DD/YY"
dfAnsi 1 "YY.MM.DD"
dfBritish 2 "DD/MM/YY"
dfFrench 3 "DD/MM/YY"
dfGerman 4 "DD.MM.YY"
dfItalian 5 "DD-MM-YY"
dfSpanish 6 "DD-MM-YY"
dfWinDefault 7 (Windows default setting)
If SetCentury is True, the century digits will precede the year digits in each of the formats shown above.
Delphi Example
ApolloEnv1.SetCentury( True ); {dates to display century}
ApolloEnv1.SetDateFormat( dfGerman ); {date format DD.MM.CCYY}
ApolloEnv1.SetDeleted( True ); {filter deleted records}
Alex_74 (2003-08-08 11:28:00) [2]
Не проходит, ни тот ни другой вариант
выдает ошибку "Invalid Query Expression"
Если можно вышли плиз хелп по аполло на адрес:
alex_dv74@mail.ru
Семен Сорокин (2003-08-06 14:48:00) [3]
a := "01/01/03";
ApolloTable1.SetFilter("datefield = CTOD(" + a + ")");
или
a := "20030101";
ApolloTable1.SetFilter("datefield = STOD(" + a + ")");
если надо вышлю хелп по Apollo :))