au3_FileListToArray函数时,可以使用UBound函数来获取数组的元素数量

admin AutoIt3评论371字数 207阅读模式
#include <File.au3>
Local $sPath = "C:\MyFolder"
Local $aFiles = _FileListToArray($sPath)
MsgBox(0, "Number of files", UBound($aFiles))

在上面的示例中,_FileListToArray 函数将指定路径下的文件列表存储在 $aFiles 数组中。然后,使用 UBound 函数来获取数组的元素数量,并将其显示在消息框中。

版权声明:文章图片资源来源于网络,如有侵权,请留言删除!!!
admin
  • 本文由 发表于 2023年5月6日 23:28:23
  • 转载请务必保留本文链接:https://www.58pxe.com/10569.html
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: