Re: [Tutor] process and modify a list of strings, in place

2011-02-12 Thread Emile van Sebille
On 2/12/2011 6:43 AM John Martinetti said... dont have many choices in output formats from the report-writer. I can export to normal text files, Excel spreadsheets, DIF format and HTML. Those are the options. I can't believe there's no CSV format, You may want to try the excel format. Two p

Re: [Tutor] process and modify a list of strings, in place

2011-02-12 Thread John Martinetti
Hi Mark - The characters skipped were unintentional, I sliced up the report based on starting/ending column numbers that I somewhat guessed and massaged by merely comparing the output of the openPOs list to the actual report. There might even been some room to massage those boundaries further to

Re: [Tutor] process and modify a list of strings, in place

2011-02-11 Thread Mark Tolonen
"John Martinetti" wrote in message news:AANLkTi=8kvksqzpujsqwffj8yarjcwhuhawtzkzfv...@mail.gmail.com... Hello - I'm a novice programmer, not even amateur level and I need some help with developing an algorithm to process a list of strings. I hope this list is tolerant of n00bs, if not, please

Re: [Tutor] process and modify a list of strings, in place

2011-02-11 Thread John Martinetti
Steve - Dave pointed out earlier in the thread the primary mistake I made...which was that when I assembled the record to be store in the list "openPOs", I did so and made it a tuple, instead of a list. That was a mistake, I meant to make that a list and after reviewing my code, over and over aga

Re: [Tutor] process and modify a list of strings, in place

2011-02-11 Thread John Martinetti
Dave - Thanks so much for your feedback. You pointed out the biggest error that I made, I was unable to see the mistake myself, but yes...I stored the "record" in the list "openPOs" as a tuple. Doh! That's not what I meant to do. I most certainly meant to make that a list, because one of the de

Re: [Tutor] process and modify a list of strings, in place

2011-02-10 Thread Steven D'Aprano
John Martinetti wrote: Hello - I'm a novice programmer, not even amateur level and I need some help with developing an algorithm to process a list of strings. I hope this list is tolerant of n00bs, if not, please let me know and I'll take this elsewhere. Hi John! This list is specifically for

Re: [Tutor] process and modify a list of strings, in place

2011-02-10 Thread Dave Angel
On 01/-10/-28163 02:59 PM, John Martinetti wrote: Hello - Welcome, # - create a record from all the fields linedata = (vendornum, vendorname, ordernum, ordersuffix, orderdate, buyer, partnum, qty, comment) # - append the record to the list of records representing the CQ report

[Tutor] process and modify a list of strings, in place

2011-02-10 Thread John Martinetti
Hello - I'm a novice programmer, not even amateur level and I need some help with developing an algorithm to process a list of strings. I hope this list is tolerant of n00bs, if not, please let me know and I'll take this elsewhere. Some background. I cut up a text based report from a reporting