Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Manual class programming example


From   Ulrich Kohler <kohler@wz-berlin.de>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Manual class programming example
Date   Thu, 16 Mar 2006 09:48:23 +0100

Thanks you very much, that solved the proplem. I simply overlooked that the 
definition of class with name xyz has to be stored in xyz.class. 

Uli

Austin Nichols wrote:
> 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 = .coordinate.new
> .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:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/

-- 
kohler@wz-berlin.de
+49 (030) 25491-361
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2020 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index