View Single Post
  #1 (permalink)  
Old November 22nd, 2007, 01:29 AM
ours ours is offline
Registered User
 
Join Date: Nov 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to ours Send a message via MSN to ours
Default Heap of typing errors HELP!!!

 Heap of typing errors in the Russian edition of the book "Beginning E-Commerce with Visual Basic, ASP, SQL Server 7.0 and MTS"
Has made all as it is described in the book, and result: "The mistake of compilation Microsoft VBScript (0x800A0401) Is supposed presence of the termination of the instruction Jo's Coffee/wroxCommercetest2.asp, line 16, column 74
objVisit.Configure "Jo'sCoffee", "jocofee.com", "driver=SQL Server"; &_ " :(

Code of page

<% option explicit %>
<html>
<head>
  <title>WroxCommerce Test page</title>
</head>
<body>

  <%

     ' ñîçäàåì îáúåêò Visit
     Dim visit
     Set visit = Server.CreateObject("WroxCommerce.Visit")

     ' êîíôèãóðèðóåì îáúåêò visit íà èìÿ ñàéòà, èìÿ ïî÷òîâîãî äîìåíà
     ' è ïàðàìåòðû ïîäêëþ÷åíèÿ ê áàçå äàííûõ
     objVisit.Configure "Jo's Cofee", "jocofee.com", "driver=SQL Server"; &_
     DATABASE=Jo's Coffee; UID=jocofeeWeb; PWD=eermlate; SERVER=localhost"

      ' îïðåäåëÿåì íîìåð âåðñèè DLL
      Response.Write "Version Number: " & visit.Version & "<br><br>"

      ' çàïèñûâàåì èìåíà íåêîòîðûõ îáúåêòîâ
      Response.Write "Visit object: " & typename(visit) & "<br>"
      Response.Write "Catalog object: " & typename(visit.Catalog) & "<br>"

      ' çàêðûâàåì è î÷èùàåì îáúåêò
      visit.Shutdown
      Set visit = Nothing
  %>
</body>
</html>
:(
Please help to understand