开发工具:
文件大小: 11kb
下载次数: 0
上传时间: 2011-12-18
详细说明: ttribute VB_Name = "Module1" Option Explicit Public Declare Function GetVolumeInformation& Lib "kernel32" Alias "GetVolumeInformationA" (ByVal lpRootPathName As String, ByVal pVolumeNameBuffer As String, ByVal nVolumeNameSize As Long, lpVolumeSerialNumber As Long, lpMaximumComponentLength As Long, lpFileSystemFlags As Long, ByVal lpFileSystemNameBuffer As String, ByVal nFileSystemNameSize As Long) Public Const MAX_FILENAME_LEN = 256 Public Function DriveSerial(ByVal sDrv As String) As Long D im RetVal As Long Dim Str1 As String * MAX_FILENAME_LEN Dim str2 As String * MAX_FILENAME_LEN Dim a As Long Dim b As Long Call GetVolumeInformation(sDrv & ":\", Str1, MAX_FILENAME_LEN, RetVal, a, b, str2, MAX_FILENAME_LEN) DriveSerial = RetVal End Function Public Function RegNumber(Song As String) As String Dim a Song = Val(Song) a = Mid(Song, 5, 2) Song = Song + 99 RegNumber = Song + 115478147829# ' RegNumber = "1891" & RegNumber End Function Public Function JmNumber(String1 As String) As String Dim a String1 = Val(String1) a = String1 = Mid(String1, 5, 3) String1 = String1 - 99 ' String1 = Mid(String1, 5) JmNumber = String1 - 115478147829# End Function Public Function GetPY(a1 As String) As String Dim t1 As String If Asc(a1) < 0 Then t1 = Left(a1, 1) If Asc(t1) < Asc("啊") Then GetPY = "0" Exit Function End If Rem __无法识别的汉字_____________________________________________________________________________ If a1 = "倩" Then GetPY = "Q" Exit Function End If If a1 = "铿" Then GetPY = "K" Exit Function End If If a1 = "锵" Then GetPY = "Q" Exit Function End If If a1 = "杵" Then GetPY = "C" Exit Function End If If a1 = "旮" Then GetPY = "G" Exit Function End If If a1 = "旯" Then GetPY = "L" Exit Function End If If a1 = "薇" Then GetPY = "W" Exit Function End If Rem _______________________________________________________________________________ If Asc(t1) >= Asc("啊") And Asc(t1) < Asc("芭") Then GetPY = "A" Exit Function End If If Asc(t1) >= Asc("芭") And Asc(t1) < Asc("擦") Then GetPY = "B" Exit Function End If If Asc(t1) >= Asc("擦") And Asc(t1) < Asc("搭") Then GetPY = "C" Exit Function End If If Asc(t1) >= Asc("搭") And Asc(t1) < Asc("蛾") Then GetPY = "D" Exit Function End If If Asc(t1) >= Asc("蛾") And Asc(t1) < Asc("发") Then GetPY = "E" Exit Function End If If Asc(t1) >= Asc("发") And Asc(t1) < Asc("噶") Then GetPY = "F" Exit Function End If If Asc(t1) >= Asc("噶") And Asc(t1) < Asc("哈") Then GetPY = "G" Exit Function End If If Asc(t1) >= Asc("哈") And Asc(t1) < Asc("击") Then GetPY = "H" Exit Function End If If Asc(t1) >= Asc("击") And Asc(t1) < Asc("喀") Then GetPY = "J" Exit Function End If If Asc(t1) >= Asc("喀") And Asc(t1) < Asc("垃") Then GetPY = "K" Exit Function End If If Asc(t1) >= Asc("垃") And Asc(t1) < Asc("妈") Then GetPY = "L" Exit Function End If If Asc(t1) >= Asc("妈") And Asc(t1) < Asc("拿") Then GetPY = "M" Exit Function End If If Asc(t1) >= Asc("拿") And Asc(t1) < Asc("哦") Then GetPY = "N" Exit Function End If If Asc(t1) >= Asc("哦") And Asc(t1) < Asc("啪") Then GetPY = "O" Exit Function End If If Asc(t1) >= Asc("啪") And Asc(t1) < Asc("期") Then GetPY = "P" Exit Function End If If Asc(t1) >= Asc("期") And Asc(t1) < Asc("然") Then GetPY = "Q" Exit Function End If If Asc(t1) >= Asc("然") And Asc(t1) < Asc("撒") Then GetPY = "R" Exit Function End If If Asc(t1) >= Asc("撒") And Asc(t1) < Asc("塌") Then GetPY = "S" Exit Function End If If Asc(t1) >= Asc("塌") And Asc(t1) < Asc("挖") Then GetPY = "T" Exit Function End If If Asc(t1) >= Asc("挖") And Asc(t1) < Asc("昔") Then GetPY = "W" Exit Function End If If Asc(t1) >= Asc("昔") And Asc(t1) < Asc("压") Then GetPY = "X" Exit Function End If If Asc(t1) >= Asc("压") And Asc(t1) < Asc("匝") Then GetPY = "Y" Exit Function End If If Asc(t1) >= Asc("匝") Then GetPY = "Z" Exit Function End If Else If a1 = "1" Then GetPY = "1" Exit Function End If If a1 = "2" Then GetPY = "2" Exit Function End If If a1 = "3" Then GetPY = "3" Exit Function End If If a1 = "4" Then GetPY = "4" Exit Function End If If a1 = "5" Then GetPY = "5" Exit Function End If If a1 = "6" Then GetPY = "6" Exit Function End If If a1 = "7" Then GetPY = "7" Exit Function End If If a1 = "8" Then GetPY = "8" Exit Function End If If a1 = "9" Then GetPY = "9" Exit Function End If If a1 = "0" Then GetPY = "0" Exit Function End If If UCase(a1) <= "Z" And UCase(a1) >= "A" Then GetPY = UCase(Left(a1, 1)) Else GetPY = "" End If End If End Function ...展开收缩
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.