请问ch4 = 0h0001......这句是哪种类型字符?
版主,前三句理解,第4句没理解,请详细说明一下。谢谢!找出数字字符 ch1 = "1234567890"
找出大写字母字符 ch2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
找出小写字母字符 ch3 = "abcdefghijklmnopqrstuvwxyz"
请问ch4 = 0h0001......这句是哪种类型字符?
以下是引用吹水佬在2023-8-6 10:36:13的发言:
可以按需要编码分类替换
str = "abc123-DEF..99测试"
ch1 = "1234567890"
ch2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
ch3 = "abcdefghijklmnopqrstuvwxyz"
ch4 = 0h000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F3A3B3C3D3E3F405B5C5D5E5F607B7C7D7E7F
? "只有数字:",CHRTRAN(str,CHRTRAN(str,ch1,""),"")
? "只有字母:",CHRTRAN(str,CHRTRAN(str,ch2+ch3,""),"")
? "大写字母:",CHRTRAN(str,CHRTRAN(str,ch2,""),"")
? "小写字母:",CHRTRAN(str,CHRTRAN(str,ch3,""),"")
? "数字字母:",CHRTRAN(str,CHRTRAN(str,ch1+ch2+ch3,""),"")
? "汉字编码:",CHRTRAN(str,ch1+ch2+ch3+ch4,"")
? "符号编码:",CHRTRAN(str,CHRTRAN(str,ch4,""),"")
? "非符号码:",CHRTRAN(str,ch4,"")
? "字母汉字:",CHRTRAN(str,ch1+ch4,"")
可以按需要编码分类替换
str = "abc123-DEF..99测试"
ch1 = "1234567890"
ch2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
ch3 = "abcdefghijklmnopqrstuvwxyz"
ch4 = 0h000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F3A3B3C3D3E3F405B5C5D5E5F607B7C7D7E7F
? "只有数字:",CHRTRAN(str,CHRTRAN(str,ch1,""),"")
? "只有字母:",CHRTRAN(str,CHRTRAN(str,ch2+ch3,""),"")
? "大写字母:",CHRTRAN(str,CHRTRAN(str,ch2,""),"")
? "小写字母:",CHRTRAN(str,CHRTRAN(str,ch3,""),"")
? "数字字母:",CHRTRAN(str,CHRTRAN(str,ch1+ch2+ch3,""),"")
? "汉字编码:",CHRTRAN(str,ch1+ch2+ch3+ch4,"")
? "符号编码:",CHRTRAN(str,CHRTRAN(str,ch4,""),"")
? "非符号码:",CHRTRAN(str,ch4,"")
? "字母汉字:",CHRTRAN(str,ch1+ch4,"")