看板 Visual_Basic 關於我們 聯絡資訊
最近我寫了一個檔案列表(這應該是ASP.net吧??) <%@ Import Namespace="System.IO"%> <%@ Page Language="VB"%> <html> <head> <title>TEST</title> </head> <body> <% Dim dirInfo As DirectoryInfo = New DirectoryInfo(Server.MapPath("/test")) Dim subFiles() As FileInfo = dirInfo.GetFiles() Dim subFile As FileInfo For Each subFile In subFiles If InStr(1,Ucase(subFile.Name),".XLS")>0 then Response.Write("<a href=/test/"+subFile.Name+">"+subFile.Name+"</a><BR>") End If Next %> </body> </html> 如果要將檔案排列的順序用檔名倒過來排 也就是 10.xls 9.xls ... 1.xls 的順序應該怎麼做 THANKS^^ -- 封條███████████████████ ˍˍˍˍˍˍ ˍˍˍˍ |Google搜尋| |好手氣| 所有網頁  ̄ ̄ ̄ ̄ ̄ ̄  ̄ ̄ ̄ ̄ 1. http://www.deltactn.com/Seal/seals.htm -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.136.43.137
fumizuki:For i = subFiles.Count() -1 To 0 Step -1 08/08 12:39