📄 frmproedit.frm
字号:
VERSION 5.00
Begin VB.Form frmproedit
Caption = "Form1"
ClientHeight = 6135
ClientLeft = 60
ClientTop = 345
ClientWidth = 9045
LinkTopic = "Form1"
ScaleHeight = 6135
ScaleWidth = 9045
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton cmd_close
Caption = "取 消"
Height = 615
Left = 5160
TabIndex = 8
Top = 4440
Width = 1575
End
Begin VB.CommandButton cmd_ok
Caption = "确 定"
Height = 615
Left = 1320
TabIndex = 7
Top = 4440
Width = 1575
End
Begin VB.Frame Frame1
Height = 3135
Left = 360
TabIndex = 0
Top = 720
Width = 7695
Begin VB.TextBox txtprice
Height = 495
Left = 1800
TabIndex = 6
Top = 2040
Width = 2535
End
Begin VB.TextBox txtunit
Height = 495
Left = 1800
TabIndex = 4
Top = 1080
Width = 2535
End
Begin VB.TextBox txtpro
Height = 495
Left = 1800
TabIndex = 2
Top = 240
Width = 3495
End
Begin VB.Label Label4
Caption = "参与价格"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 360
TabIndex = 5
Top = 2160
Width = 1575
End
Begin VB.Label Label3
Caption = "计量单位"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 3
Top = 1200
Width = 1575
End
Begin VB.Label Label1
Caption = "产品名称"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 360
TabIndex = 1
Top = 360
Width = 1935
End
End
End
Attribute VB_Name = "frmproedit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Modify As Boolean
Public OriName As String
Public OriId As Long
Private Sub Cmd_close_Click()
Unload Me
End Sub
Private Function Check() As Boolean
If Trim(txtpro) = "" Then
MsgBox "请输入产品名称"
txtpro.SetFocus
Check = False
Exit Function
End If
Check = True
End Function
Private Sub Cmd_OK_Click()
If Check = False Then
Exit Sub
End If
DB_Connect
SqlStmt = "insert into product " _
+ " values ('" + Trim(txtpro) + "','" + Trim(txtunit) + "'," + Trim(txtprice) + ")"
OdbcExt (SqlStmt)
Rc = SQLFreeStmt(Hstmt, SQL_DROP)
DB_Disconnect
Unload Me
Unload frmproman
frmproman.Show 1
End Sub
Private Sub txtStore_KeyPress(KeyAscii As Integer)
EnterTAB (KeyAscii)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -