The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by fergus]

First thanks for a great book. It's extremely useful.

Going throughchapter 10 -the iterations.

The first example is all about the SimpleForEachTag, but then the 10.3 listing
uses the foreach tag (ie not the sforeach tag). Moreover the line in the tag
'The selected item is <%= item%>' causes a compile error (Undefined variable).
When I take the expression out, then I get the four lines of 'The selected
item is' but no number.

Can anyone point me in the right direction?

thanks

fergus
import-bot (20211) [Avatar] Offline
#2
Re: inconsistencies in chapter 10 iteration
[Originally posted by fergus]

> First thanks for a great book. It's extremely useful.
>
> Going throughchapter 10 -the iterations.
>
> The first example is all about the SimpleForEachTag, but then the 10.3 listing
> uses the foreach tag (ie not the sforeach tag).


answered my own question there was a rogue piecee of code in there! however
the example is still the wrong one!

fergus