Using a Variable as a Parameter for CreateObject() (130460)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
This article was previously published under Q130460 SUMMARY
CreateObject() takes a classname as a parameter. This article shows by
example how to set a variable equal to the classname, and than use that
variable as the parameter for every CreateObject() function for that class.
Should the class later be subclassed, you only need to change the variable
name from the old classname to the new subclass name; only a single line of
code had to change.
Modification Type: | Major | Last Reviewed: | 2/11/2000 |
---|
Keywords: | kbcode KB130460 |
---|
|