dcsimg
June 18, 2018
Hot Topics:

Pseudo-Objects in Active Server Pages

  • October 14, 1999
  • By Thornton Rose
  • Send Email »
  • More Articles »

<%
' CloneObj.asp - Example program to show cloning of a pseudo-object.
option explicit
%>


NOTE: include file="db.inc"
NOTE: include file="Entity.inc"
NOTE: include file="Car2.inc"

<%
dim car1
dim car2

' Create a Car.

set car1 = Car_New()
car1("make") = "Volkswagen"
car1("model") = "Beetle"
car1("year") = 1965
car1("color") = "yellow"

' Clone the car.

set car2 = Entity_Clone(car1)

' Show the cars.

Response.Write "

		
" & vbCrLf

Response.Write "car 1: [" & car1("year") & " " & car1("make") & " " & _
   car1("model") & ", " & car1("color") & "]" & vbCrLf 
Response.Write "car 2: [" & car2("year") & " " & car2("make") & " " & _
   car2("model") & ", " & car2("color") & "]" & vbCrLf 

Response.Write "
" & vbCrLf %>





Page 10 of 11



Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

By submitting your information, you agree that developer.com may send you developer offers via email, phone and text message, as well as email offers about other products and services that developer believes may be of interest to you. developer will process your information in accordance with the Quinstreet Privacy Policy.

Sitemap

×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date