Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom Data Session Class
Message
 
À
18/10/2001 12:32:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00570332
Message ID:
00570354
Vues:
19
>Hey all,
>
>I remember seeing a while back a simple class that would let you define
>your own object for data sessions as a non-visual class. Shame on me, I lost the code where I was using it and cant remember how to do it?
>
>I think I remember something about using a form object in it...
>
>Anybody knows where I saw this information? An article somewhere maybe?
>Or maybe someone remember how to do it?
>
>Thanks in advance
>
>Pascal

As of VFP 6, just create a class based on the session base class

from the command window, open a new prg file.
define a class in it like this:


DEFINE CLASS MyClass as session
.
.
.
ENDDEF


you can access this class like:


oClass = newo("MyClass","MyPrg.prg")
Bill Mittenzwey
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform