?? modmain.bas
字號:
Attribute VB_Name = "modMain"
'超市銷售系統
'程序開發:lc_mtt
'CSDN博客:http://blog.csdn.net/lc_mtt/
'個人主頁:http://www.3lsoft.com
'郵箱:3lsoft@163.com
'注:此代碼禁止用于商業用途。有修改者發我一份,謝謝!
'---------------- 開源世界,你我更進步 ----------------
Public GetApp As String '本地路徑
Public curUserName As String '當前用戶名
Public curUserStyle As Long '當前用戶類型
'程序入口
Public Sub Main()
On Error Resume Next
If App.PrevInstance Then
End
Exit Sub
End If
'獲得本地路徑
GetApp = App.Path: If Right$(GetApp, 1) <> "\" Then GetApp = GetApp & "\"
readServer '讀取SQL服務器配置信息
frmLogin.Show
'Exit Sub
'sqlConnect cnMain, strSQLServer, strSQLUser, strSQLPW, strSQLDB
'curUserName = "admin"
'curUserStyle = 4
'frmMain.Show
End Sub
Public Sub SetSB(ByVal i&, ByVal strText$)
frmMain.LBSB(i).caption = strText
End Sub
Public Function GetINI(ByVal s1 As String, s2 As String)
On Error Resume Next
GetINI = GetSetting("MySuperMarket", s1, s2)
End Function
Public Function GetLongINI(ByVal s1 As String, s2 As String, Optional Def As Long = 0) As Long '獲取INI中整數值
On Error GoTo aaaa
Dim str As String
str = GetINI(s1, s2)
If str = "" Then
GetLongINI = Def
Else
GetLongINI = CLng(str)
End If
Exit Function
aaaa:
GetLongINI = Def
End Function
Public Sub SaveINI(ByVal s1 As String, s2 As String, s3 As String)
On Error Resume Next
SaveSetting "MySuperMarket", s1, s2, s3
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -