
Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
02.12.2005, 08:45:33
|
|||
|---|---|---|---|
|
|||
Замена ComboBox на DataCombo |
|||
|
#18+
Здравствуйте все!!! Помогите пожалуйста переделать процедуру автоподстановки в Combo. Есть процедура на ComboBox, а надо DataCombo процедура: Private Sub ComboAutoComplete(cmb As ComboBox) Dim txt As String, pos As Long, txtlen As Long Dim matchcount As Long, complword As String Dim maxi As Long, i As Long, cmbindex As Long txt = cmb.Text txtlen = Len(txt) pos = cmb.SelStart maxi = cmb.ListCount - 1 For i = 0 To maxi If StrComp(txt, Left$(cmb.List(i), txtlen), vbTextCompare) = 0 Then matchcount = matchcount + 1 If matchcount = 1 Then complword = cmb.List(i) cmbindex = i End If End If Next If matchcount >= 1 Then cmb.ListIndex = cmbindex cmb.SelStart = pos cmb.SelLength = Len(complword) - pos End If End Sub ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=60&mobile=1&tid=2166765]: |
0ms |
get settings: |
10ms |
get forum list: |
15ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
176ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
15ms |
get tp. blocked users: |
1ms |
| others: | 235ms |
| total: | 467ms |

| 0 / 0 |
