¹ØÓÚVBÖеÄÁбí¿òµÄÎÊÌâ
Ò»µÀVBС³ÌÐò
ÓÐÁ½¸öÁбí¿òlist1¡¢ list2 ¡£list1Öгõʼ»¯ÓÐ15¸ö²»Í¬µÄ×Öĸ£¬¶ølist2ÖÐÊÇ¿Õ°×µÄ »¹ÓÐÒ»¸ö°´Å¥command1,Ñ¡ÖÐlist1ÖеÄÈÎÒâ¶à¸öÏîÄ¿ È»ºóµã»÷°´Å¥command1,ÔòÔÚlist2ÖÐÏÔʾlist1Öб»Ñ¡ÖеÄÏîÄ¿¡£µ±¶à´ÎÑ¡ÖÐlist1ÖеÄͬ¸öÏîĿʱºò£¬±ÈÈçlist1ÖеÄa±»Ñ¡ÖÐÁË3´Î ÄÇôÔÚlist2ÖоÍÓÐ3¸öa.
ÎÒÏëÎÊ£ºÔõÑù±àд´úÂëʵÏÖµ±list1ÖеÄÏîÄ¿²»¹Ü±»Ñ¡ÖжàÉٴΣ¬ÔÚlist2ÖÐÏàͬµÄÖ»³öÏÖÒ»´Î£¬¼´ÔÚlist2Öв»Òª³öÏÖÖظ´µÄ×Öĸ¡£ÔõÑùʵÏÖÄØ£¿
˼·£ºÔÚcommand1ÖУ¬±»Ñ¡ÖеÄÏîÄ¿´æÈëÊý×é±äÁ¿sDate£¬Ñ»·¸ÃÊý×é±äÁ¿£¬Àï±ßǶÌ×list2µÄÏîÄ¿×öÑ»·£¬Èç¹ûÓÐÏàͬµÄ¾Í²»ÔÙÍùlist2²åÈë
dim b as boolean
for i =0 to ubound(sDate)
for j =1 to list2.ListCount
if sDate(i)= list2.list(j) then b=true
next j
if b=false then
list2.AddItem =sDate(i)
else
b=false
end if
next i
VB code:
Private Sub Command1_Click()
Dim i As Integer, j As Integer
Dim b As Boolean
For i = 0 To List1.ListCount - 1
If List1.Selected(i) Then
b = True
For j = 0 To List2.ListCount - 1
If List1.List(i) = List2.List(j) Then
b = False
Exit For
End If
Next j
If b Then List2.AddItem (List1.List(i))
Ïà¹ØÎÊ´ð£º
¹¦ÄÜ£ºÔÚÊäÈëµãµÄ×ø±êºó£¬»³ö¶ÔÓ¦µÄµã£»ÔÚ»Á˵ãºó£¬¿ÉÒÔÐ޸ĵãµÄ×ø±ê£¬²¢´Óл£»Öظ´Ö±µ½Í¼ÐÎÂÖÀª»Íê¡£²¢¿ÉÒÔ½«µãµÄ×ø±ê×÷ΪÎı¾ÎĵµÊä³ö¡£
ÎÒ²»ÖªµÀÔõôÄÜʵÏÖ£¬Ð»Ð»£¡
ÓÃPictureBoxʵÏÖ°É,ÐèÒª¶Ô×ø±êµ¥Î»» ......
×Ö·û´® m1="E"
×Ö·û´® m2="F"
Èç¹ûtext1.text=m1+m2µÄ»° Ôòtext1ÏÔʾµÄÊÇ EF
µ«ÊÇÈç¹û
×Ö·û´® m1="E"
×Ö·û´® m2="6"
Èç¹ûtext1.text=m1+m ......
VBÖÐcallbacke function ÈçÏ£º
Public Function EnumChildProc(ByVal hwnd As Long, ByVal lParam As Long) As Long
Dim slength As Long, WndTitle As String ' title bar text length an ......
Open App.Path & "\tu\hb.bmp" For Binary As #100
ÓÃopenÓï¾ä´ò¿ªÎļþ,ÎÒÏëÓÃifÓï¾äÅжÏÕâ¸öÎļþÊÇ·ñ´ò¿ª,¾ÍÊÇ˵Èç¹ûû´ò¿ª,¾Í´ò¿ª,ÇëÎʸ÷λÅóÓÑÔõôд?
ÊÇ·ñ´ò¿ªÊÇÖ¸ÊÇ·ñÒѾÓû±Ê´ò¿ªÁËô?»¹Ê ......
Private Sub cmdModify_Click()
Dim iRet As Integer
If dltUser.Text = "" Then
MsgBox "ÇëÑ¡ÔñÒªÐ޸ĵÄÓû§£¡", vbOKOnly ......