?? a_start.frm
字號:
VERSION 5.00
Begin VB.Form A_Start
BackColor = &H00C0C0FF&
BorderStyle = 3 'Fixed Dialog
ClientHeight = 7110
ClientLeft = 45
ClientTop = 45
ClientWidth = 9510
ClipControls = 0 'False
ControlBox = 0 'False
Icon = "A_Start.frx":0000
KeyPreview = -1 'True
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 7110
ScaleWidth = 9510
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command1
Caption = "繼 續"
Height = 375
Left = 6000
TabIndex = 5
Top = 6000
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "退 出"
Height = 375
Left = 7440
TabIndex = 4
Top = 6000
Width = 1215
End
Begin VB.Frame Frame1
BackColor = &H00FFFF00&
Height = 4920
Left = 720
TabIndex = 0
Top = 600
Width = 8000
Begin VB.Label lblVersion
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "For 98/2000/2003/XP"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 240
Index = 1
Left = 3840
TabIndex = 8
Top = 2040
Width = 2565
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "作者:剪刀石頭布 QQ:16968526"
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000C0&
Height = 255
Left = 4080
TabIndex = 7
Top = 4320
Width = 3255
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "剪刀軟件工作室鼎力呈現"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000C0&
Height = 210
Left = 4080
TabIndex = 6
Top = 3720
Width = 2715
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "家庭財務管理程序"
BeginProperty Font
Name = "隸書"
Size = 24
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 480
Left = 3240
TabIndex = 3
Top = 840
Width = 3960
End
Begin VB.Image imgLogo
Height = 4785
Left = 0
Picture = "A_Start.frx":0442
Stretch = -1 'True
Top = 75
Width = 3135
End
Begin VB.Label lblWarning
BackStyle = 0 'Transparent
Caption = "2007.05.18"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00008000&
Height = 315
Left = 4680
TabIndex = 1
Top = 2880
Width = 1245
End
Begin VB.Label lblVersion
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Version 2.10 "
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 240
Index = 0
Left = 4080
TabIndex = 2
Top = 1560
Width = 1770
End
End
End
Attribute VB_Name = "A_Start"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
' ┃ F_Start 系統啟動窗口 ┃
' ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
Option Explicit
'
Private Sub Form_Load()
Me.Height = 7200
Me.Width = 9600
blnTc = False
StrUjb = ""
Label1 = ""
Label2 = ""
End Sub
Private Sub Form_Activate()
If blnTc = False And Command1.Visible Then
Call P_init ' 創建數據庫-工作表
Command1.SetFocus
Else
Command2.Visible = True
Command2.SetFocus
End If
'Form01.Show ' 啟動管理員菜單 !!!!
'FormA0.Show
'FormD6.Show
'Unload Me
End Sub
Private Sub Form_Click() ' 鼠標單擊 Form
Call Command1_Click
End Sub
Private Sub Frame1_Click() ' 鼠標單擊 Frame
Call Command1_Click
End Sub
Private Sub Command1_Click() ' 繼續
If blnTc = False Then
Command1.Visible = False
Command2.Visible = False
B_Login.Show ' 登錄
End If
End Sub
Private Sub Command2_Click() ' 結束
Unload Me
End
End Sub
Private Sub P_init() ' 初始化
Call myP_mkDir(App.Path & StrDir) ' 建立文件夾
Db_fN2 = App.Path & StrDir & Db_Name2
If Dir(Db_fN2) = "" Then
Set MyDb2 = CreateDatabase(Db_fN2, dbLangGeneral) ' 建立數據庫 T
MyDb2.Close: Set MyDb2 = Nothing
End If
If myF_ConnT(Db_fN2) = False Then Unload Me: Exit Sub ' 連接庫 T
StrT3 = "T_yf"
If myF_ExistT(StrT3) < 0 Then ' 藥費報銷表
StrSQL = "CREATE TABLE " & StrT3 & " ( " & _
" Bh short,Xm text(6),Sj text(22),Je single," & _
" Sl short,Bx text(1),Rq text(10),Bz text(30) )"
cnnTce.Execute StrSQL, , adCmdText
End If
StrT2 = "T_zm"
If myF_ExistT(StrT2) < 0 Then ' 帳目表
StrSQL = "CREATE TABLE " & StrT2 & " ( " & _
" Rq text(10),Xh short," & _
" Sz text(1),Lb text(1),Mc text(40)," & _
" Dj single,Sl short,Sr single,Zc single,Ye single," & _
" Bh short,Bz text(30) )"
cnnTce.Execute StrSQL, , adCmdText
End If
StrT1 = "T_tm"
If myF_ExistT(StrT1) < 0 Then ' 條目表
StrSQL = "CREATE TABLE " & StrT1 & "( " & _
" Dm text(5),Xh text(3),Mc text(40),Jc text(20),Bz text(20) )"
cnnTce.Execute StrSQL, , adCmdText
StrShm = "家庭理財"
StrMsg = StrT1 & "( Dm,Xh,Mc,Jc,Bz) VALUES "
StrSQL = "INSERT into " & StrMsg & "('Mc001','101','" & StrShm & "','" & StrShm & "',' ')"
cnnTce.Execute StrSQL, , adCmdText
StrSQL = "INSERT into " & StrMsg & "('Mc002','102','“希望杯”',' ',' ')"
cnnTce.Execute StrSQL, , adCmdText
StrSQL = "INSERT into " & StrMsg & "('Mc003','103','剪刀軟件工作室',' ',' ')"
cnnTce.Execute StrSQL, , adCmdText
StrSQL = "INSERT into " & StrMsg & "('Kl001','101','kevin','1215','1')" ' 一級口令
cnnTce.Execute StrSQL, , adCmdText
StrSQL = "INSERT into " & StrMsg & "('Kl002','102','User','1234','2')" ' 二級口令
cnnTce.Execute StrSQL, , adCmdText
StrSQL = "INSERT into " & StrMsg & "('Lb001','101','工資','s','A')"
cnnTce.Execute StrSQL, , adCmdText
StrSQL = "INSERT into " & StrMsg & "('Lb002','102','醫藥費報銷','s','B')"
cnnTce.Execute StrSQL, , adCmdText
StrSQL = "INSERT into " & StrMsg & "('Lb003','103','其它','s','C')"
cnnTce.Execute StrSQL, , adCmdText
StrSQL = "INSERT into " & StrMsg & "('Lb004','104','副食','z','A')"
cnnTce.Execute StrSQL, , adCmdText
StrSQL = "INSERT into " & StrMsg & "('Lb005','105','水費','z','B')"
cnnTce.Execute StrSQL, , adCmdText
StrSQL = "INSERT into " & StrMsg & "('Lb006','106','電話費','z','C')"
cnnTce.Execute StrSQL, , adCmdText
StrSQL = "INSERT into " & StrMsg & "('Lb007','107','煤氣費','z','D')"
cnnTce.Execute StrSQL, , adCmdText
StrSQL = "INSERT into " & StrMsg & "('Lb008','108','醫藥費','z','E')"
cnnTce.Execute StrSQL, , adCmdText
StrSQL = "INSERT into " & StrMsg & "('Lb009','109','其它','z','F')"
cnnTce.Execute StrSQL, , adCmdText
End If
Set MyRs2 = New Recordset
StrSQL = "Select * From T_tm Where Dm = 'Mc001'"
MyRs2.Open StrSQL, cnnTce, adOpenKeyset, adLockOptimistic
StrShm = Trim(MyRs2![Mc]) ' 取出名稱
Set MyRs2 = New Recordset
StrSQL = "Select * From T_tm Where Dm = 'Mc002'"
MyRs2.Open StrSQL, cnnTce, adOpenKeyset, adLockOptimistic
StrGum = Trim(MyRs2![Mc]) ' 取出冠名
Set MyRs2 = New Recordset
StrSQL = "Select * From T_tm Where Dm = 'Mc003'"
MyRs2.Open StrSQL, cnnTce, adOpenKeyset, adLockOptimistic
StrDwm = Trim(MyRs2![Mc]) ' 取出單位
MyRs2.Close
StrCrq = Format(Date, "yyyy.mm.dd")
i = imgLogo.Left + imgLogo.Width
Label1.Caption = Trim(StrShm & " 程序") ' StrGum & " " &
Label1.Left = i + (Frame1.Width - i - Label1.Width) / 2
Label2.Caption = StrDwm
Label2.Left = i + (Frame1.Width - i - Label2.Width) / 2
End Sub
Private Sub Label1_Click()
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -