Вниз
Скачать: 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.44 MB
Время: 0.033 c
1-1086036883
SergP
2004-06-01 00:54
2004.06.13
PageControl&amp;PopupMenu. Как узнать какой Tabsheet


6-1082553857
Multy
2004-04-21 17:24
2004.06.13
Подсчёт трафика


4-1084094478
Alexander Likhachev
2004-05-09 13:21
2004.06.13
Доступ к закрытым веткам в рестре W2K


6-1082903946
Romariosp
2004-04-25 18:39
2004.06.13
Как получить список сетевых адаптеров


1-1086069212
din
2004-06-01 09:53
2004.06.13
Как работает функция DayOfWeek




   Наверх