WINCC-Textbox文本框限制字母和數字

參考 VB語言

Dim  input
input = "31"   'inputbox("請輸入一個字符:")
if input>="A" And input<="Z" Or input>="a" And input<="z" then
	msgbox(input& "是字母")
	else
	if input>="0" And input<="9" then
	msgbox(input& "是數字")
	else
	msgbox(input& "不是字母,也不是數字")
	end if
end if
發佈了9 篇原創文章 · 獲贊 0 · 訪問量 5709
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章