..also, since you can't really do mathematical operations on matrices of
characters, I'm curious as to what one would or could do with such a
matrix that would be difficult or could not be done with a bunch of
1-character string variables in ordinary Stata format.
Al Feiveson
-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Austin
Nichols
Sent: Wednesday, March 15, 2006 9:52 AM
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: Manual class programming example
Are you skipping the initial periods (. prompts) correctly, but
incorrectly typing in the numbers (1. and 2. and 3.) after issuing the
program command? You would not type the numbers (2. and 3.) in the
following:
. forv i=1/2 {
2. di `i'
3. }
and the same principle applies here. See -help classman- for correct
syntax.
On 3/15/06, Ulrich Kohler <kohler@wz-berlin.de> wrote:
> We try to reproduce the introductive class programming example shown
> in [P] "class - class programming", pg. 28. Unfortunately we get the
> error message "set 1 2: class member function not found, r(4023);".
> Any ideas what happens here.
>
>
> ---------------------------------
> . do 11.class
> . version 9
> . class coordinate {
> . double x
> . double y
> . }
> . program .set
> 1. args x y
> 2. .x = `x'
> 3. .y = `y'
> 4. end
> .
> end of do-file
>
> . .coord = .coordinate.new
>
> . .coord.set 1 2
> set 1 2: class member function not found r(4023);
> --------------------------------------
*
* 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/
*
* 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/