Re: Array Help Needed



Jerry wrote:
"Jessica Griego" <jess@xxxxxxxxxxx> wrote in message news:J8jSk.4113$8_3.1586@xxxxxxxxxxxxxxxxxxxxxxx
"Jerry" <jerroo@xxxxxxx> wrote in message news:NNSdncIitpe_Z4vUnZ2dnUVZ_vKdnZ2d@xxxxxxxxxxxxxxx
Hi,

I have an array of ORDER DETAILS (see below). I would like to pull out of the order Object array all the [products] in the order that have the [attributes] [option] equal to 'Subscription' (this example the order has 2 subscription products and 2 products that are not subscriptions, but other orders may have more or less), and put them into a new array with the following structure:
Jerry, please don't multi-post. Cross-post if you must, but don't waste the time of multiple news groups trying to give you an answer while one group isn't aware you're getting help somewhere else. It is very rude. Plus, others can't see the answer...and they may have learned something new.

Thanks.

Hi Jessica,

I'm new to using news groups, so unfamiliar with all the protocols. I would not have thought asking my questions in different groups would be considered a waste of anyones time. I thought that was reserved for binary posting which use considerable resources(bandwidth/storage). Seems I would not have received the benefit of J.O. Aho's help if I hadn't. I really appreciate J.O. Aho's help and yours as well. Also I plan on posting J.O. Aho's solution on comp.lang.php and giving him credit because I do understand that others may browse the group for similar solutions. I did before I posted. I will look around for a usenet FAQ to familiarize myself with the protocols. I know I had seen one once.

I am also taking Curtis' advice and bottom-posting : )

Best Regards, Jerry



Jerry,

Her comment is not about posting in multiple newsgroups - it's about multiposting vs. crossposting.

Multiposting is like sending individual emails to multiple people. Crossposting is like sending one message to multiple recipients. The advantage of crossposting is that responses will appear in all of the newsgroups.

See http://www.cs.tut.fi/~jkorpela/usenet/xpost.html for info on a better way to post to multiple newsgroups.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.



Relevant Pages

  • Bug+fix: PDC20271 RAID detection fails
    ... My array was not detected by my kernel. ... the PDC RAID superblock, that is located at the start ... of the last track on the disk. ... is a multiple of track size and if not, ...
    (comp.os.linux.hardware)
  • Re: Another Filegroup question
    ... I would suggest multiple filegroups only so it would be easier to ... small array as this I don't think multiple files will buy you anything. ... don't think you have too much of a choice if you only have 4 drives that are ...
    (microsoft.public.sqlserver.server)
  • Re: Looping through an object
    ... Your test, however, doesn't clearly demonstrate that it is a copy, since you didn't modify elements in the array but only added to the array. ... Jerry - 0 ... It is sooooooooooooo nice to be able to simply present facts and not have to stoop to the level of insults to "protect" a battered ego. ...
    (comp.lang.php)
  • Re: optimizing code segment
    ... > lookup is an array of unsigned ints ... > understand MMX is getting obsolete but SSE2 is not widespread on AMD ... You can use multiple movd instructions and then shuffles ...
    (comp.lang.asm.x86)
  • RE: Using Match function with duplicate values in an array
    ... > set up a helper column ... >> function to find the row reference in the array. ... >> are multiple equal values in the column. ...
    (microsoft.public.excel.worksheet.functions)