VB中如何写个函数判断数字与字母
ab1234567如何只取数字1234567,不取ab等字母
人气:331 ℃ 时间:2020-04-08 16:39:10
解答
function haha(str as string) as stringfor i=1 to len(str)if not isnumeric(mid(str,i,1)) thena=a&mid(str,i,1)end ifnexthaha=aend function 分别检查传入的字符串的每一位字符是否是数字,如果不是,则保存.遍历...
推荐
猜你喜欢