<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<br><BR>Just out of curiosity, is there any way to sum part of an array?<BR><br><BR>[1,2,3,4,5]<BR><br><BR>Lets say I have an index variable and I always will want to sum from 0 to that variable.<BR><br><BR>pseudo<BR>my_array.sum(0,var);<BR><br><BR>Or am I forced to loop + add?<BR><br><BR>Or any elegant way to create a temp array of the target elements and sum on that instead?<BR><br><BR>Dave<BR><br><BR><br><BR> </div></body>
</html>