Hi Robert,

Hard to offer help with such a complex example... perhaps you could
distill the problem into a few lines of code?  That's a good approach
to debugging problems in almost any situation.

A couple notes:

(1)
Note that this syntax is unnecessarily complex:

$shipment.getShipAddr()

Anytime you have a getter (e.g.   getXXXX()   )  you can change it to
this syntax
$shipment.XXXX

e.g.
$shipment.ShipAddr.FirstName

(2) With a multi-step reference like this, when you see the reference
in the final text, it means that some part of it is invalid.  Check
each part
$shipment
$shipment.ShipAddr
$shipment.ShipAddr.FirstName


(3)
I suspect that $shipment itself is invalid.  It's hard to read your
complex example, but it appears to be above the #foreach.  In other
words, this will probably not work

$shipment.ShipAddr.FirstName
#foreach($shipment in $shipments)

something
#end

but this might.  (assuming all the references and property names are valid)

#foreach($shipment in $shipments)

   $shipment.ShipAddr.FirstName

#end

WILL

On 1/20/07, Robert Reil <[EMAIL PROTECTED]> wrote:
Hello:

I am new to programming and am having trouble with a line of code not
executing. I have been advised that it is a loop issue. But I dont
understand the logic behind looping or how to read into it.
I have a VERY detailed description well documented and trouble shot, and one
of you programmers could see the problem in about 30 seconds. Me I have
spent about 14 hours on it to get to this point in diagnostics. At this
point I am stuck...

HELP PLEASE!!!!

http://forums.ablecommerce.com/viewtopic.php?t=4577
<http://forums.ablecommerce.com/viewtopic.php?t=4577>

Robert P. Reil

Managing Director,

Motorcyclecarbs.com, Inc.

4292 Country Garden Walk NW

Kennesaw, Ga. 30152

Office 770-974-8851

Fax 770-974-8852

www.motorcyclecarbs.com <http://www.motorcyclecarbs.com/>






--
Forio Business Simulations

Will Glass-Husain
[EMAIL PROTECTED]
www.forio.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to