Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does a DEFINE CLASS... class exist?
Message
De
22/05/2003 09:07:09
 
 
À
21/05/2003 13:18:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00787527
Message ID:
00791554
Vues:
34
>Steve,
>
>Are you sure?
>
>Let's say I have code in a procedure file:
>
>FUNCTION DEFINECOLUMNCLASS()
>
>DEFINE CLASS myColumn AS column
>
>RETURN
>
>
>Now I add the class to my grid.
>
>SET PROCEDURE TO DEFINEFUNCTIONS ADDITIVE
>DO DEFINECOLUMNCLASS
>
>this.AddObject( "newcolumn","myColumn" )
>
>RETURN
>
>
>How does Fox know that there is a defined class called "myColumn"?
>
>Something is in memory that either contains the class definition or points to the function that created the class definition that Fox recognizes as myColumn.
>
>How do I find out if that something exists?
>
>Regards,

I was doing something similar the other day and found that my problem was simply scope. I executed a method to define a class and the definition was lost when the method closed. Don't know if that helps but good luck.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform