導航:首頁 > 編程語言 > vb代碼判斷性別

vb代碼判斷性別

發布時間:2025-02-13 02:02:56

㈠ 用vb根據身份證號提取其中的省份,出生日期,性別,校驗碼的代碼,怎麼寫啊,要具體的正確的,再懸賞2

Private Sub Command1_Click()

Select Case Mid(Trim(Text1.Text), 1, 2)

Case 11

Text2.Text = "北京市"

Case 12

Text2.Text = "天津市"

Case 13

Text2.Text = "河北省"

Case 14

Text2.Text = "山西省"

Case 15

Text2.Text = "內蒙古自治區"

Case 21

Text2.Text = "遼寧省"

Case 22

Text2.Text = "吉林省"

Case 23

Text2.Text = "黑龍江省"

Case 31

Text2.Text = "上海市"

Case 32

Text2.Text = "江蘇省"

Case 33

Text2.Text = "浙江省"

Case 34

Text2.Text = "安徽省"

Case 35

Text2.Text = "福建省"

Case 36

Text2.Text = "江西省"

Case 37

Text2.Text = "山東省"

Case 41

Text2.Text = "河南省"

Case 42

Text2.Text = "湖北省"

Case 43

Text2.Text = "湖南省"

Case 44

Text2.Text = "廣東省"

Case 45

Text2.Text = "廣西壯族自治區"

Case 46

Text2.Text = "海南省"

Case 50

Text2.Text = "重慶市"

Case 51

Text2.Text = "四川省"

Case 52

Text2.Text = "貴州省"

Case 53

Text2.Text = "雲南省"

Case 54

Text2.Text = "西藏自治區"

Case 61

Text2.Text = "陝西省"

Case 62

Text2.Text = "甘肅省"

Case 63

Text2.Text = "青海省"

Case 64

Text2.Text = "你喜歡回族自治區"

Case 65

Text2.Text = "新疆維吾爾自治區"

Case 71

Text2.Text = "台灣省"

Case 72

Text2.Text = "香港特別行政區"

Case 73

Text2.Text = "澳門特別行政區"

End Select

Text3.Text = Mid(Text1.Text, 7, 8)

Text4.Text = IIf(Val(Mid(Text1.Text, 17, 1)) Mod 2 = 0, "女", "男")

Text5.Text = Mid(Text1.Text, 18, 1)

End Sub

㈡ vb通過輸入身份證號碼顯示性別

str_id = input("請輸入身份證號碼:")
gender = int(mid(str_id,17,1))

if gender % 2 =1
MsgBox "男"
else
MsgBox "女"

閱讀全文

與vb代碼判斷性別相關的資料

熱點內容
linuxcat最新的1000條日誌 瀏覽:113
跑馬器按哪個鍵記錄數據 瀏覽:826
電腦最小的文件找不到 瀏覽:783
南網在線app銀行代扣什麼意思 瀏覽:82
華為如何設置進去app的密碼 瀏覽:314
三國群英傳版本不合 瀏覽:480
復合中心用什麼編程軟體好 瀏覽:9
網路語言雙槍會給出答案什麼意思 瀏覽:182
各種軟體文件類型是lnk打不開 瀏覽:450
微信傳輸助手能傳多少分鍾文件 瀏覽:982
淘特app如何鑒定真假 瀏覽:338
腐女app有什麼 瀏覽:838
javapatternapi 瀏覽:655
編程設計是什麼 瀏覽:961
java免費框架 瀏覽:173
網路升級報告 瀏覽:521
未指定nat網路名稱 瀏覽:444
linux直接訪問桌面顯存 瀏覽:416
linuxsizet頭文件 瀏覽:414
opp網站頁面禁止訪問怎麼辦 瀏覽:48

友情鏈接