更新时间:2023-11-13 22:41:04
不保证 Dir()
会以任何特定顺序返回文件.MS Access VBA 文档 甚至说:
There's no guarantee that Dir()
will return the files in any particular order. The MS Access VBA documentation even says:
提示 因为文件名是没有特定的顺序检索,你可能想要存储返回的文件名在 array
中,然后对数组进行排序.
Tip Because file names are retrieved in no particular order, you may want to store returned file names in an
array
, and then sort the array.