Asp components and the initial entry series of five proficiency

  Often we can see in connecting to the database, open the record set when, as follows: 

  Rs.Open strsql, conn, adOpenDynamic, adLockPessimistic 

  In type ",", will be behind the emergence of a cursor on the type or types of locks can be available. 

  Sometimes we have to simplify, direct rs.open strsql, conn, 1,3 

  The first method is more professional than some, we have to look at how to achieve asp 

  Open vb6, Activex Dll new projects.    Works were revised to fCom, class name was revised to fC5 

  Option Explicit 

  'Definition of an enumerated type 

  Public Enum Interfacedig 

  Icfirst = 1 

  Icsecond = 2 

  Icthree = 3 

  Icfour = 4 

  Icfive = 5 

  Icsix = 6 

  Icserven = 7 

  Iceight = 8 

  End Enum 

  'Defined Function 

  Public Function CallDat (ByVal idig As Integer, ByVal ics As Interfacedig) As Variant 

  CallDat idig * = ics 

  End Function 

  Ok, a component to write, click on the menu -> -> documents generated fCom.dll 

  Determined that there will be in the directory under the document fCom.dll 

  Test 

  Open visual interdev6.0, generate a document asp 

  <% @ Language VBScript% => 

<HTML>

<BODY>

<%

  'Definition, can also put a part of this document, as the record set ado <!–# include file = "adovbs.inc" -> 

  Const icfirst = 1 

  Const icsecond = 2 

  Const icthree = 3 

  Const icfour = 4 

  Const icfive = 5 

  Const icsix = 6 

  Const icserven = 7 

  Const iceight = 8 

  Set obj = server.CreateObject ( "fCom.fc5") 

  'You can use iceight or 8, but the former is better to the readability of code 

  Obj.CallDat a = (4, iceight) 

  Response.Write a 

  Response.Write "<br>" 

  Obj.CallDat a = (4,8) 

  Response.Write a 

%>

  <P> </ P> 

  </ BODY> 

  </ HTML> 

  Configured virtual directory, ie asp in the implementation of this document are as follows: 

32
32

Bookmark it: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Google
  • DotNetKicks
  • DZone
  • Furl
  • Netvouz

Tags: , ,

Releated Articles


0 Comments to “Asp components and the initial entry series of five proficiency”

No Comments. Send your comment.

Leave a Reply

You must be logged in to post a comment.