module1.bas
来自「土地管理系统 用acess+datareporter做的」· BAS 代码 · 共 30 行
BAS
30 行
Attribute VB_Name = "Module1"
'*****************************************************************
'****** scuimage ********
'****** data 2007.4.19 ********
'****** missilery0@163.com ********
'*****************************************************************
Global combostr As String
Global cnn As ADODB.Connection
Global cmd As ADODB.Command
Global rs1 As ADODB.Recordset
Global rs2 As ADODB.Recordset
Global rs3 As ADODB.Recordset
Public Function DataToYMD(sr As String, yout As String, mout As String, dout As String)
yout = Left(sr, 4)
If Mid(sr, 8, 1) = "-" Then
mout = Mid(sr, 6, 2)
Else
mout = Mid(sr, 6, 1)
End If
If Left(sr, 2) = "-" Then
dout = Left(sr, 1)
Else
dout = Left(sr, 2)
End If
End Function
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?