Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: Set class's Name change the object's Class property
Message
From
06/12/2007 06:47:32
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
BUG: Set class's Name change the object's Class property
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01273530
Message ID:
01273530
Views:
64
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
Next
Reply
Map
View

Click here to load this message in the networking platform