Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: Set class's Name change the object's Class property
Message
De
06/12/2007 06:47:32
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
BUG: Set class's Name change the object's Class property
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01273530
Message ID:
01273530
Vues:
62
Set the Name property into a class definition change it's Class property to the name value.
CLEAR

=CREATEOBJECT("ClassName")

DEFINE CLASS ClassName	AS Custom
	Name	= 'ObjectName'

   PROCEDURE Init
	? "Class expected <ClassName>, Observed :"	,this.Class
        * this not set Class
	this.Name = "AnotherName"
	? "Class expected <ClassName>, Observed :"	,this.Class
ENDDEFINE
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform