【正文】
的版面布局,將窗體顯示在屏幕上。 如果要分析數據或將數據以特定的方式打印出來,請創(chuàng)建一個報表。例如,可以打印一份將數據分組并計算數據總和的報表,也可以打印另一份帶有各種數據格式的打印郵件標簽的報表。 第六章 系統設計 系統分析 本 VB 數控加工技術教學素材資源庫采用計算機專業(yè) 的 VB課程為內容主要由以下幾大模塊構成 . 五 . 概念和基本原理 (VB 概述 ,窗口控件和菜單 ,工程的管理 ,開發(fā)應用程序 ) 六 . 語言參考 (關鍵字 ,函數 ,數據類型 ,偽指令 ,運算符 ) 七 . API 函數 八 . 經典事例 系統流程和操作方式設計 第七章 系統界面設計 系統界面設計 主界面設計 主界面 概念和基本原理 機床結構 編程 題庫 代碼設計 : Private Declare Function ShellExecute Lib Alias ShellExecuteA (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long Private BigStyle As String Private SmallStyle As String Private RTB1_BackCorlor As Integer Private AddCode As Boolean Private EditCode As Boolean Dim Temptitle As String Private Sub Cmdcancel_Click() = GetSetting(, Corlor, BackCorlor, ) = False: = False: = True = True EditCode = False AddCode = False (7).Image = 5: (8).Image = 6 (7).Caption = 全選 : (8).Caption = 復制 (7).Tag = Tool_SelAll: (8).Tag = Tool_Copy = False: = False End Sub Private Sub Cmdfix_Click() = False: = False: = True Dim adoprimaryrs As New If = Then MsgBox 類 別 不 能 為 空 , vbCritical + vbApplicationModal, 錯誤 Exit Sub End If If = Then MsgBox 標 題 不 能 為 空 , vbCritical + vbApplicationModal, 錯誤 Exit Sub End If If = Then MsgBox 內 容 不 能 為 空 , vbCritical + vbApplicationModal, 錯誤 Exit Sub End If Select Case True Case AddCode i = ExistRecord(code, 標題 , Trim()) If i Then MsgBox 該代碼標題已存在,請重新修改代碼標題 , vbCritical + vbApplicationModal, 錯誤 = 0 = Len(Trim()) Exit Sub End If Case EditCode Dim adoprimarycmd As New = StrConnect = delete * from code where 標題 =39。 amp。 Trim(Temptitle) amp。 39。 Set adoprimarycmd = Nothing End Select = adUseClient select * from code, StrConnect, adOpenKeyset, adLockOptimistic, adCmdText (大類別 ) = Trim(BigStyle) (小類別 ) = Trim(Cbostyle) (標題 ) = Trim(TxTTitle) (內容 ) = Set adoprimaryrs = Nothing = GetSetting(, Corlor, BackCorlor, ) Call ShowTree(BigStyle) = True EditCode = False AddCode = False (7).Image = 5: (8).Image = 6 (7).Caption = 全選 : (8).Caption = 復制 (7).Tag = Tool_SelAll: (8).Tag = Tool_Copy = False: = False = GetSetting(, Font, FontSize, ) = GetSetting(, Corlor, BackCorlor, ) End Sub 39。Private Sub Command1_Click() 39。Dim str As String: Dim rst1 As New : Dim rst2 As New 39。str = PROVIDER=。Data Source= amp。 amp。 \data\。 39。 select * from winfun, str, adOpenKeyset, adLockOptimistic 39。 select * from funclass, str, adOpenKeyset, adLockOptimistic 39。 39。For i = 1 To 39。 (聲明 ) = GetFthFld2(funclass, name, (函數 ), fullname) 39。 39。 39。Next 39。End Sub Private Sub Form_Load() = 0: = 0 = False: = False: = True (1).Text = amp。 Format(Date, long date) amp。 amp。 Time amp。 = amp。 \data\ = GetSetting(, Font, FontSize, ) = GetSetting(, Corlor, BackCorlor, ) StrConnect = PROVIDER=。Data Source= amp。 amp。 \data\。 StrTempConnect = PROVIDER=。Data Source= amp。 amp。 \data\。 BigStyle = 概念和基本原理 Call ShowTree(BigStyle) End Sub Private Sub ShowTree(ByVal TempBigStyle As String) Dim nodex As Node Dim nodey As Node Dim adoprimaryrs1 As New Dim adoprimaryrs2 As New a = aa b = bb c = cc If TempBigStyle = API 函數 Then 39。************************************************* = adUseClient select 函數 from winfun order by 函數 , StrTempConnect, adOpenForwardOnly, adLockReadOnly, adCmdText 39。************************************************* = tvwRootLines Set nodex = (, , a, TempBigStyle, 2, 1) If 0 Then Else Exit Sub End If Do Until TempSmallStyle = (函數).Value Set nodey = (a, tvwChild, b, TempSmallStyle, 3, 3) b = b + 1 Loop Set adoprimaryrs1 = Nothing Else 39。************************************************* = adUseClient = adUseClient select distinct 小類別 from Code where 大類別 =39。 amp。 TempBigStyle amp。 39。, StrConnect, adOpenForwardOnly, adLockReadOnly, adCmdText 39。************************************************* = tvwRootLines Set nodex = (, , a, TempBigStyle, 2, 1) If 0 Then Else Exit Sub End If Do Until TempSmallStyle = (小類別).Value Set nodey = (a, tvwChild, b, TempSmallStyle, 3, 3) If = 1 Then End If select 標題 from Code where 大類別 =39。 amp。 TempBigStyle amp。 39。 and 小類別 =39。 amp。 TempSmallStyle amp。 39。, StrConnect, adOpenForwardOnly, adLockReadOnly, adCmdText If 0 Then End If Do Until Set nodey = (b, tvwChild, c, (標題 ), 4, 4) c = c + 1 Loop b = b + 1 Loop