标题:编译下面代码时出现,缺少:标示符警告
取消只看楼主
yigererenren
Rank: 1
等 级:新手上路
帖 子:9
专家分:0
注 册:2017-3-8
结帖率:0
 问题点数:0 回复次数:1 
编译下面代码时出现,缺少:标示符警告
Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal
hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any)
As Long
Public Const CB_FINDSTRING = &H14C

Private Sub Combo1_Change()
Dim iStart As Integer
Dim sString As String
Static iLeftOff As Integer
iStart = 1
iStart = Combo1.SelStart
If iLeftOff <> 0 Then
Combo1.SelStart = iLeftOff
iStart = iLeftOff
End If
sString = CStr(Left(Combo1.Text, iStart))
Combo1.ListIndex = SendMessage(Combo1.hwnd,B_FINDSTRING, -1, ByVal CStr(
Left( ombo1.Text, iStart))

 
If Combo1.ListIndex = -1 Then
iLeftOff = Len(sString)
Combo1.Text = sString
End If
Combo1.SelStart = iStart
iLeftOff = 0
End Sub
2017-03-09 13:04
yigererenren
Rank: 1
等 级:新手上路
帖 子:9
专家分:0
注 册:2017-3-8
得分:0 
回复 2楼 ZHRXJR
谢谢

2017-03-10 09:33



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-474892-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.245472 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved