Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL-DMO & EventHandler
Message
De
31/01/2003 05:01:59
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
SQL-DMO & EventHandler
Divers
Thread ID:
00747580
Message ID:
00747580
Vues:
61
I´m trying to do a Backup not attended.

I have this class:
*-- hansqldmo.PRG

DEFINE CLASS hndBackup as Session
IMPLEMENTS BackupSink IN "sqldmo.backup"

PROCEDURE BackupSink_Complete(cmessage as String) as long

PROCEDURE BackupSink_PercentComplete(cmessage as String, percent as Long) as long

PROCEDURE BackupSink_NextMedia(cmessage as String) as long

ENDDEFINE
and my test program are :
SET PROCEDURE TO clas/hansqldmo.PRG
RELEASE h
RELEASE o
o = CREATEOBJECT("sqldmo.backup")
h = CREATEOBJECT("hndbackup")

? EVENTHANDLER(o,h,.t.)
+
EVENTHANDLER() return always .F.

What is wrong in this code.

Regards,
José Luis.

Quidquid latine dictum sit, altum sonatur

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform