Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Email Automation via SMTP Server
Message
 
 
To
28/07/2003 12:55:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00813190
Message ID:
00814192
Views:
32
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform