Контрольная работа: Адресная книга на языка Visual Basic
Close
blnDial = False
End If
End Sub
Private Sub butEdit_Click()
lngIndex = lstMain.GetSelected
Load frmEdit
frmEdit.txtName = User(lstMain.GetSelected).strName
frmEdit.txtOtchectvo = User(lstMain.GetSelected).strOtchectvo
frmEdit.txtFamilia = User(lstMain.GetSelected).strFamilia
frmEdit.txtAdress = User(lstMain.GetSelected).strAdress
frmEdit.txtdoma = User(lstMain.GetSelected).strDoma
frmEdit.txtkvartira = User(lstMain.GetSelected).strKvartira
frmEdit.txtPhone = User(lstMain.GetSelected).strPhone
frmEdit.txtComment = User(lstMain.GetSelected).strComment
frmEdit.Show vbModal
End Sub
Private Sub butExit_Click()
Unload Me
End Sub
Private Sub butOptions_Click()
Load frmOptions
frmOptions.Show vbModal
End Sub
Private Sub Command1_Click()
bPoisk = True
If Dir(Path & "search.dat") <> "" Then Kill (Path & "search.dat")
butAdd.Visible = False
butEdit.Visible = True