TIP: Click on subject to list as thread! ANSI
echo: wperfect
to: TIM HUTZLER
from: GAVIN TOWNSHEND
date: 1997-01-02 15:12:00
subject: Using counters

Hi Tim!
... On 15 Nov 96  06:14:24
... Tim Hutzler wrote the following to All
 TH> I used a counter to increment a series of problem numbers on a
 TH> homework assignment. The assignment had four sections, each numbered
 TH> from one to eight. I was able to setup the style to correctly count
 TH> the first section. But then I had problems with resetting the count
 TH> for all the sections thereafter.
 TH> For instance, between the sections I have a header line. I *thought*
 TH> that by including a count set command, I could reset the counter.
 TH> But, no matter how I did it, the count resumed where it left off as
 TH> if the style having the 'count inc/display' kept the number to itself.
You may have received an answer by this time already, but in case you
haven't, here's my reply...
I managed to achieve what you are looking for with (it sounds like) very
much the same kind of problem. I made use of 2 styles; one for the
sections and one for the subsections. The styles included the following:
Style - Section Heading = reset subsection counter to 1 (not zero)
Style - Subsection = display counter and then increment counter (seperate
                     codes)
I can't explain why your method didn't work. I worked through the same
problem about 2 years ago and came up with my _slightly different_
solution which worked for me.
Hope this helps...
           'Til next time...  Greetings from the Jacaranda City
                      -=*=- Gavin Townshend -=*=-
... "Corrupt" is too harsh, I prefer the term "Ethically Challenged".
--- WtrGate 0.92 gamma Unreg
---------------
* Origin: Unisa Editorial, Pretoria, Gauteng, RSA 27-12-429-8641 (5:7106/20)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.