Контрольная работа: Адресная книга на языка Visual Basic
End Type
Public Type UserInfo
strName As String
strOtchectvo As String
strFamilia As String
strAdress As String
strDoma As String
strKvartira As String
strPhone As String
strComment As String
End Type
Public User() As UserInfo
Public lngIndex As Long
Public Reg As Object
Public blnDial As Boolean
Public Const Square As Long = &H1 Or &H2 Or &H4 Or &H8
'Для поиска
Public bPoisk As Boolean
Sub Main()
Set Reg = CreateObject("WSCRIPT.SHELL")
If App.PrevInstance = True Then
MsgBox "Программа уже запущенна..."
Else
Load frmMain
frmMain.Show
End If
End Sub
Public Sub SetTop(hWnd As Long, Top As Boolean)
Select Case Top