Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Базы";
Текущий архив: 2002.07.22;
Скачать: [xml.tar.bz2];

Вниз

Фильтрация в 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;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.023 c
3-70656
NaPoleOn_IV
2002-06-20 21:49
2002.07.22
Как экспортировать содержимое DBEdit в Excel в определенную ячейк


1-70802
dlK
2002-07-09 11:36
2002.07.22
Процесс сервиса занимает 99% процессорног времени.


1-70681
AL2002
2002-07-08 19:09
2002.07.22
кАК выбить прогу?


1-70752
Alex
2002-07-08 16:00
2002.07.22
Application.Title из чужого EXE


1-70829
~E~R~R~O~R~
2002-07-10 19:52
2002.07.22
INI!!!!





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский