ASP IsRootFolder ความแปลง
คำนำออกและการใช้งาน
IsRootFolder ความแปลงที่กลับค่าว่าหน่วยเลขที่เรียกใช้มีไปยังโฟลเดอร์ที่เป็นโฟลเดอร์รากหรือไม่ ถ้าเป็นแล้วกลับค่า True ถ้าไม่เป็นกลับค่า False
การใช้งาน
FolderObject.IsRootFolder
ตัวอย่าง
<% dim fs,fo set fs=Server.CreateObject("Scripting.FileSystemObject") set fo=fs.GetFolder("c:\asp\test") if fo.IsRootFolder=true แล้ว Response.Write("The folder is the root folder!") else Response.Write("โซนที่ไม่ใช่โซนเริ่มต้น!") end if set fo=nothing set fs=nothing %>
ข้อมูลที่ออกมา
โซนที่ไม่ใช่โซนเริ่มต้น