ASP Type အကိုးးအခံ

ဒီပုံစံ နှင့် အသုံးပြုခြင်း

Type အကိုးးအခံ သုံးသပ်ထား သည် သတ်မှတ်ထားသော ဖိုင် သို့မဟုတ် ဖွဲ့စည်းပုံ ကို ပုံစံ ပြန်ဆိုသည်。

အက္ခရာ:

FileObject.Type
FolderObject.Type

File အပေါင်းစု အတွက် အမျိုးအစား

<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:help.txt")
Response.Write("The file test.txt is of type: ")
Response.Write(f.Type)
set f=nothing
set fs=nothing
%>

输出:

The file help.txt is of type: Text Document

Folder အပေါင်းစု အတွက် အမျိုးအစား

<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:help.asp")
Response.Write("ဖောင်ဒေးသီး test.asp ဖြစ်သည့် ပုံစံ: ")
Response.Write(f.Type)
set f=nothing
set fs=nothing
%>

输出:

The file help.asp is of type: Active Server Document