You can also try :
local n : list sizeof global A
Best regards.
Amadou.
Thank you very mauch!
--- Jose Valderrama <jvalderrama@minag.gob.pe> a �crit
:
> global A "var1 var2 var3"
> global nA : word count $A
> dis $nA
>
> Jos� A. Valderrama
>
> -----Mensaje original-----
> De: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] En
> nombre de PNIR
> PUISSANCE
> Enviado el: Mi�rcoles, 09 de Noviembre de 2005 09:25
> a.m.
> Para: statalist@hsphsun2.harvard.edu
> Asunto: st: Number of elements in Global
>
> Dear all!
> How can I get the number of element in global.
> Like:
> global A "var1 var2 var3....varN"
>
>
>
>
>
-------------------------------------------------------------------------------
*
* 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/