My goal is to write a report generator that keeps a running total of alarm messages in a .csv file. I have condensed my original code down to this snippet that is used to see if an alarm message (read from an input file as �LineIn�) is already in my list, and if so, use its indexOf value for updating the running-count (also contained on the same comma-delimted line as the message) later on.
I�m at a loss to understand why the indexOf doesn�t work as I expect and my frustration has grown to the point where I�m ready to ditch this and write it in PERL/ksh.
The AHC.get returns exactly what I expect, the 4th line of my .csv file (and it indeed contains the
string "CarbonAlarm"), but the AHC.indexOf always returns -1. Based on what I have read here in the Saloon, it probably has something to do with the �String LineIn�. I would be forever in debt to someone who would please explain to me what is going on.
EEEEKS!! where did my formatting go after cut&paste???
I hope ya'll can read this...
now, i guess i'd better go find the FAQ about formatting...
[ November 15, 2007: Message edited by: tk harvey ]