Dear Hans, > vardef textlength(text t) = > save n ; n := 0 ; > for i = t : > n := n + 1 ; > endfor; > n > enddef; >
Thank you for a good method! It can be used in another program. Best regards, Dalyoung ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________