Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Advice for multiuser application
Message
 
À
02/10/2002 09:04:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00706690
Message ID:
00706858
Vues:
32
In a .prg you can create subclasses of the stock VFP data environment and cursor objects extending them with all kinds hooks and custom functionality. Doing so, I was able to create generic data classes to work with SQL Server via stored procedures. For example, when I call the custom update method on my cursor objects, they automatically know which SP to call, what parms to pass and how to deal with dirty reads and ODBC return errors.

Basically:

DEFINE CLASS bseCursor AS CURSOR, or DEFINE CLASS bseDE AS DATAENVIRONMENT

- the rest is up to your imagination. There seems to be no limit to what you can do.

I will be happy to share these ideas with anyone. Just give me your email address and I will send you the code.

Charlie
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform