Re: Array Issues with Comet32


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Jeff Cinelli on February 15, 2011 at 05:38:52:

In Reply to: Array Issues with Comet32 posted by Jim Guerber on February 11, 2011 at 12:11:42:

My thoughts are that Comet should attempt to stay with the mainstream, and give us an option otherwise. Comet16 is what it is. If the same command in Comet32 works a little differently, because of subscript 0 (which it should), so be it. But giving us a custom command or statement in addition to the standard is what makes Signature and Comet stand out from the rest.

I like the idea of a new Comet32 command that would define a specific range. I think a syntax similar to what you recommended would work well.

xxx: Format a(1:10,1:20)

in addition to that format statement, an executable that sums the range would be extremely useful

Lets say we have sales for 12 months, for 3 years:

xxx: format sales(1:12,1:3)

Let Total = Sum(sales(1:12,1)) ! total sales for year 1
Let Total = Sum(sales(1:12,1:3)) ! total sales for all years

A single subscripted array would work the same

xxx: format sales(1:12)

Let Total = Sum(sales(1:12)) ! total sales for the year
Let Qtr4 = Sum(sales(10:12)) ! total sales for quarter 4

This would eliminate the need for for/next loops to total larger arrays



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]