Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSDE Installation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00830397
Message ID:
00830822
Vues:
35
Ok, not sure what's wrong here. Should'nt I be seeing a cursor in the
Data Session window? nConnHand is > 0.
oCA = CREATEOBJECT("caODBC")

RETURN


DEFINE CLASS caODBC AS CursorAdapter

  PROCEDURE Init
		
    OPEN DATABASE Pubs

    cSelectCmd 	= "select * from authors"
    cConnStr 	= "Driver=SQL Server;Server=MCMPC149;Databaser=Pubs"
    nConnHand 	= SQLCONNECT("cntPubs")

    WITH This
        .DataSource = nConnHand
        .SelectCmd = cSelectCmd
	.CursorFill()
    ENDWITH

  ENDPROC

  PROCEDURE Destroy
    IF This.DataSource > 0
      SQLDISCONNECT(This.DataSource)
    ENDIF
  ENDPROC

ENDDEFINE
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform