Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Function to assign a value label to a global marco


From   "Lars E. Kroll" <[email protected]>
To   [email protected]
Subject   st: Function to assign a value label to a global marco
Date   Fri, 14 Oct 2005 13:08:00 +0200

Dear all,

I'm trying to do the following:

. label define mylabel 1 "Hello" 2 "Good Bye"
. global myvaluelabel UNKNOWNFUNCTION(mylabel,1)
. di "{$myvaluelabel} XY!"
HELLO XY!

But I don't know the UNKNOWNFUNCTION and I didn't find an information about. But I know that it is possible..

(In fact I want to assign the value label to a legend in an overlaid tw graph.. )

I hope someone can help me..

Lars

--
____________________________
Lars E. Kroll
UNI 030 83857614
RKI 030 45473307
Privat 0176 23131352
FAX 069 13306720084
WEB www.lkroll.de
*
* 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index