Wednesday, March 15, 2006

Re: st: Manual class programming example

Note that -help classman- specifies: "Classes are usually defined in .class files. For instance, we might define the class coordinate in the file coordinate.class" and if you save the text

version 9.1 class coordinate { double x double y } program .set args x y .x = `x' .y = `y' end

in a file called coordinate.class in your path, you don't need to run or do a do-file to type interactively

.coord = .coord.set 1 2

without seeing any error messages. (Close Stata and start a new instance if you are having problems with this.)

* * For searches and help try: * * *


Links to this post:

Create a Link

<< Home

This page is powered by Blogger. Isn't yours?