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

Вниз

Поиск в TMemo   Найти похожие ветки 

 
Oyster ©   (2004-06-01 12:09) [0]

Есть ли в TMemo какой-нибудь метод для поиска. Или хотя бы есть вообще системная функция для проверки 2 строк на равенство без учета регистра?


 
Serge ©   (2004-06-01 12:13) [1]

Compares two strings.

function CompareStrings(const S1, S2: string): Integer; virtual;

Description

TStrings uses CompareStrings internally to compare the values of strings that appear in the list. For example, the IndexOf and IndexOfName methods use CompareStrings to compare a specified string with the strings in the list.

S1 and S2 are the strings to compare.

CompareStrings returns a value less than 0 if S1 < S2, 0 if S1 = S2, and a value greater than 0 if S1 > S2.

As implemented in TStrings, CompareStrings uses the global AnsiCompareText function, which compares strings case insensitively. Some descendant classes override this method to change the way strings are compared (for example, to introduce case sensitivity).


 
Семен Сорокин ©   (2004-06-01 12:23) [2]

pos(AnsiLowerCase(Edit1.Text), AnsiLowerCase(Memo1.Text))



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

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

Наверх




Память: 0.47 MB
Время: 0.023 c
1-1086246349
Roma
2004-06-03 11:05
2004.06.13
Вопрос по TMenuItems


3-1085157912
Igor_P
2004-05-21 20:45
2004.06.13
автоинкремент в Interbase


3-1085399227
Alex_xxx
2004-05-24 15:47
2004.06.13
Новая беда: где взять Provider=Microsoft.Jet.OLEDB.4.0???


1-1086179010
ZHK
2004-06-02 16:23
2004.06.13
Печему нельзя присвоить TControl.OnMouseMove?


3-1084960004
Alex_x
2004-05-19 13:46
2004.06.13
Изменение типа поля в базе.