Name

ADO Name xususiyati


❮ Command obyektining to‘liq ma’lumotnomasi

Name xususiyati Command, Property, Field yoki Parameter obyektining nomini o‘z ichiga olgan stringni o‘rnatadi yoki qaytaradi.

Obyekt Name xususiyatining tavsifi
Command Name xususiyati Connection obyektida o‘qish/yozish ruxsatiga ega
Property Name xususiyati Property obyektida faqat o‘qish ruxsatiga ega
Field

Name xususiyati Recordset yaratishda ishlatilganda o‘qish/yozish ruxsatiga ega, biroq mavjud Recordset’ni ochganingizda faqat o‘qish ruxsatiga ega bo‘ladi

Parametr Name xususiyati Parameters kolleksiyasiga qo‘shilmagan Parameter obyektida o‘qish/yozish ruxsatiga ega, biroq obyekt kolleksiyaga qo‘shilgandan keyin faqat o‘qish ruxsatiga ega bo‘ladi

Sintaksis

object.Name

Misol - Command obyekti uchun

<% set conn=Server.CreateObject("ADODB.Connection") conn.Provider="Microsoft.Jet.OLEDB.4.0" conn.Open "c:/webdata/northwind.mdb" set comm=Server.CreateObject("ADODB.Command") comm.Name="xx" response.write(comm.Name) conn.close %>

Misol - Field obyekti uchun

<% set conn=Server.CreateObject("ADODB.Connection") conn.Provider="Microsoft.Jet.OLEDB.4.0" conn.Open "c:/webdata/northwind.mdb" set rs = Server.CreateObject("ADODB.Recordset") rs.open "Select * from orders", conn set f=Server.CreateObject("ADODB.Field") 'Display the field attributes of the Orders Table for each f in rs.Fields   response.write("Attr:" & f.Attributes & "<br>")   response.write("Name:" & f.Name & "<br>")   response.write("Value:" & f.Value & "<br>") next rs.Close conn.close set rs=nothing set conn=nothing %>


Misol - Property obyekti uchun

<% set conn=Server.CreateObject("ADODB.Connection") conn.Provider="Microsoft.Jet.OLEDB.4.0" conn.Open "c:/webdata/northwind.mdb" set rs = Server.CreateObject("ADODB.Recordset") rs.open "Select * from orders", conn set prop=Server.CreateObject("ADODB.Property") 'Display the property attributes of the Orders Table for each prop in rs.Properties   response.write("Attr:" & prop.Attributes & "<br>")   response.write("Name:" & prop.Name & "<br>")   response.write("Value:" & prop.Value & "<br>") next rs.close conn.close set rs=nothing set conn=nothing %>

❮ Command obyektining to‘liq ma’lumotnomasi

W3Schools Pathfinder

Yutuqlaringizni kuzating – bu bepul!