Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.024 c
3-1084593063
неизвестный
2004-05-15 07:51
2004.06.13
Socket и базы данных


8-1081022449
***VipeR***
2004-04-04 00:00
2004.06.13
Открытие/Закрытие CD/DVD привода


1-1085976765
Максим
2004-05-31 08:12
2004.06.13
Как в QuickRep.Preview сделать Zoom 100%?


3-1084973834
Gennadiy
2004-05-19 17:37
2004.06.13
Как сделать для IBQuery чтото типа свойства ReadOnly??


14-1085566752
wnew
2004-05-26 14:19
2004.06.13
Совсем загнулся сайт:(




   Наверх