📄 mainfuncbas.bas
字号:
Attribute VB_Name = "MainFuncBas"
Option Explicit
Public NowSelectTzCode As String
Public NowQueryForm As String
Public NowSelectForm As String
Sub HelpFunction(lhWnd As Long, HelpCmd As Integer, HelpKey As String)
Dim lRtn As Long 'declare the needed variables
If HelpCmd = HELP_PARTIALKEY Then
lRtn = WinHelp(lhWnd, App.HelpFile, HelpCmd, HelpKey)
Else
lRtn = WinHelp(lhWnd, App.HelpFile, HelpCmd, 0&)
End If
End Sub
'*=====================================================*
'*Writes a string to an INI file. To use, call the *
'*function and pass it the sAppname, sKeyName, the New *
'*String and the INI File Name, *
'*[R=WriteINI(App1,Key1,sReg,INIFile)]. Returns a 1 if *
'*there were no errors and a 0 if there were errors. *
'*******************************************************
Sub WriteINI(sAppname$, sKeyName$, sNewString$, sFileName As String)
Dim r As Integer
r = WritePrivateProfileString(sAppname$, sKeyName$, sNewString$, sFileName$)
End Sub
Function GetFromINI(SectionHeader$, VarName$, FileName$) As String
Dim RetString As String
RetString = String(255, Chr(0))
'Get Requested Information
GetFromINI = Left(RetString, GetPrivateProfileString(SectionHeader$, ByVal VarName$, "", RetString, Len(RetString), FileName$))
End Function
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -