
ASP字符串转换为整形、双精度型、布尔作者:字体:[]类型:转载时间:2008-05-15asp可以轻松将字符串类型转化为其它类型的函数Rem将字符串转换为整形数据functiontoInteger(str,num)str=trim(str)ifstr=""ornotisnumeric(str)thentoInteger=numelsetoInteger=clng(str)endifendfunctionRem将字符串转换为双精度型数据functiontoDouble(str)str=trim(str)ifstr=""ornotisnumeric(str)thentoDouble=0.0elsetoDouble=cdbl(...