I thought I understood this, but maybe I'm just making
an obvious typo. When I run the following
************* test ***************
program define test, rclass
version 11
local rlist
forv i=1/40 {
local text "text`i'"
local rlist `rlist' `text'
}
di "`rlist'"
return local test `"`rlist'"'
end
test
di r(test)
**********************************
Why is -rlist- truncated to 244 chars in the return list? I have
tried this a number of different ways (I guess I have never tried
to return a long string before?); I thought as long as I used
macro copy rather than evaluate, macros would not get truncated.
I have tried many variations on the -return- assignment, but this
is the one explicitly recommended on [P] page 340.
thanks,
Jeph
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/