MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to get the value of a counter


On Tue, 21 Mar 2006 07:46:03 -0500 (EST), Zhengji Li wrote:
> Dear all,
>
> Is it possible to get the current value of a counter ?
>
> e.g. value = GetCounterValue["Chapter"];
>
> CounterBox does not do such things.

NotebookGet[] and NotebookRead[] both take the undocumented option 
ReleaseHold.  If ReleaseHold->True is specified, they will read the 
specified notebook with counter boxes replaced with their literal values.

Sincerely,

John Fultz
jfultz at wolfram.com
User Interface Group
Wolfram Research, Inc.



  • Prev by Date: Re: Reading Results from J/Link
  • Next by Date: Re: sorting list of roots af a transcendental function
  • Previous by thread: Re: How to get the value of a counter
  • Next by thread: Re: How to get the value of a counter