Am 13.06.2011 um 14:30 schrieb luigi scarso:

How can I do the same thing in ConTeXt?
plain TeX is ok, for example,
\newdimen\AlphaBet
\bgroup \setbox10=\hbox{abcdefghijklmnopqrstuvwxyz}
\global\AlphaBet=\wd10\egroup
\the\AlphaBet

\starttext

\dowithnextbox
  {\edef\AlphabetLength{\the\nextboxwd}}%
   \hbox{abcdefghijklmnopqrstuvwxyz}

\AlphabetLength

\stoptext

Hans wrote also a command for this but it never went into core: http://archive.contextgarden.net/message/20070314.120612.adab0a8b.en.html

Wolfgang