当前位置: 移动技术网 > IT编程>脚本编程>VBScript > vbs的sort排序

vbs的sort排序

2017年12月12日  | 移动技术网IT编程  | 我要评论
function fsortarray(asortthisarray)
dim oarraylist, ielement
set oarraylist = createobject( "system.collections.arraylist" )
for ielement = 0 to ubound(asortthisarray)
oarraylist.add asortthisarray(ielement)
next
oarraylist.sort
set fsortarray = oarraylist
end function

myarray=array(50,20,30)
msgbox myarray(0)
msgbox fsortarray(myarray)(0)

'createobject( "system.collections.arraylist" )调用了mscoree.dll,是.net framework相关组件。

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网