Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a non-visual class to Visual FoxPro project
Message
 
 
À
12/04/1999 12:30:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00207481
Message ID:
00207660
Vues:
12
Henry,

Your AddObject should be adding the name specified in the DEFINE CLASS TheClassName AS Custom.

this.AddObject( "oX", "TheClassName" )

>Does anyone know how to add a non-visual class to a FoxPro project? I have created a class using the DEFINE CLASS X AS CUSTOM and placed this into a .prg file. Unfortunately, I cannot successfully add this class to a form. I used the following syntax in the FORM's init procedure:
>
>SET PROCEDURE TO MyClasses ADDITIVE
>THISFORM.ADDOBJECT('oX', 'MyClasses')
>
>I then added the .prg file MyClasses.prg to the project under the 'Code', 'Programs' section of the Project manager. When I try to run the FORM in the debugger I get an error saying the MyClasses.prg file cannot be found.
>
>Where should the .prg file be placed? I put it under the Project\Progs folder. Also, is the code I am using to add the class to the form correct?
>
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform