Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.07.22;
Скачать: CL | DM;

Вниз

Фильтрация в ADODataSet   Найти похожие ветки 

 
_dron_   (2002-07-02 16:11) [0]

Возможно ли сделать фильтрацию в ADODataSet таким образом, чтобы фильтровалось по принципу поле="начало имени *"
* - все что угодно.


 
kig ©   (2002-07-02 16:20) [1]

Курсор какой?


 
Johnmen ©   (2002-07-02 16:25) [2]

Используя OnFilterRecord можно заделать любой фильтр....


 
_dron_   (2002-07-02 16:36) [3]

Курсор clUseClient

А по какому принципу можно это сделать, используя OnFilterRecord


 
Johnmen ©   (2002-07-02 16:50) [4]

Обычным образом...

const
NI = "начало имени";

Accept:=AnsiLowerCase(Copy(DataSet.FieldByName("MyField").AsString,1,Length(NI)))=NI;


 
kig ©   (2002-07-02 17:37) [5]

Если курсор клиентский, то

Filter Property
Indicates a filter for data in a Recordset.

....

FieldName must be a valid field name from the Recordset. If the field name contains spaces, you must enclose the name in square brackets.
Operator must be one of the following: <, >, <=, >=, <>, =, or LIKE.

....

If Operator is LIKE, Value can use wildcards. Only the asterisk (*) and percent sign (%) wild cards are allowed, and they must be the last character in the string. Value cannot be null.

....

In a LIKE clause, you can use a wildcard at the beginning and end of the pattern (for example, LastName Like "*mit*"), or only at the end of the pattern (for example, LastName Like "Smit*").




Страницы: 1 вся ветка

Текущий архив: 2002.07.22;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.012 c
1-70738
sergn
2002-07-08 16:49
2002.07.22
TListView и иконки.


14-70892
Praco
2002-06-24 12:12
2002.07.22
Как назвать дочку? Молодые папы и мамы, помогите :- )


14-70909
Manist
2002-06-25 17:28
2002.07.22
Как в GTA 3 летать на самолетике Dodo?


14-70872
_landy
2002-06-24 07:09
2002.07.22
генератор html-отчетов


7-70942
sir_musatov
2002-04-29 11:49
2002.07.22
функция format в Win2k