Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Email Automation via SMTP Server
Message
 
 
À
28/07/2003 12:55:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00813190
Message ID:
00814192
Vues:
33
>I am not sure if I understand how to use the code (i.e., do I put all of the code in one place, etc...). Using classes in FoxPro is new to me and it seems as though the code is defining a class and then calling it. Any help with this would be appreciated. Thanks

Most of the Wiki code relating to e-mail appears to be intended for a Prg file. As far as instantiating is concerned, your options ar determined by the version of VFP you are using:

Some one else can verify this, but I think VFP 7 introduced the OF clause. e.g.
LOCAL oMyObject AS SomeClass OF Prgs\ClassLibrary.Prg
In earlier versions you will need to do a SET PROCEDURE TO, before attempting to instatiate an object. e.g.
SET PROCEDURE TO Prgs\ClassLibrary
oMyObject = CreateObject( "SomeClass" )
Hope this helps.
censored.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform