Private Sub Command1_Click() Dim k As Integer,n As Integer,found As Boolean found=False n=Len(______) k=0 While k<List1.ListCount And Not found If Text1=Left$(List1.List(k),n)Then Text2= found=True End If k=k+1 Wend If Not found Then Text2="查无此人" End If End Sub