Re: [Tutor] Field/Variable References

2009-12-18 Thread Dave Angel
John Filben wrote: Can someone please let me know how to read a file one record at a time (just say fixed block for now - see small example below) and assign columns to fields. Then reference the field names with if-then-else logic. Sample Fixed Block File: John98762 John82634 John11234 Tha

Re: [Tutor] Field/Variable References

2009-12-18 Thread Serdar Tumgoren
> Why negative indexes when fields lengths are known? I'll admit I made a few assumptions based on what I could glean from the OP: * names will vary in length in a questionnaire or poll (which this appears to be) * answers will always be represented by a single digit * area code (at least in US)

Re: [Tutor] Field/Variable References

2009-12-18 Thread Kent Johnson
On Fri, Dec 18, 2009 at 8:57 AM, John Filben wrote: > Can someone please let me know how to read a file one record at a time (just > say fixed block for now - see small example below) and assign columns to > fields.  Then reference the field names with if-then-else logic. > > Sample Fixed Block Fi

Re: [Tutor] Field/Variable References

2009-12-18 Thread spir
Serdar Tumgoren dixit: > > Thank you - can you please assume that the data provided is the following: > > > > Columns 1 - 4 = Name (in record 1 of example = "John") > > Column 5 = Answer1 (in record 1 of example = "9") > > Column 6 = Answer2 (in record 1 of example = "8") > > Column 7 = AreaCode

Re: [Tutor] Field/Variable References

2009-12-18 Thread Serdar Tumgoren
I'm reposting John's follow-up question (below) to the list. > Thank you - can you please assume that the data provided is the following: > > Columns 1 - 4 = Name (in record 1 of example = "John") > Column 5 = Answer1 (in record 1 of example = "9") > Column 6 = Answer2 (in record 1 of example = "8

Re: [Tutor] Field/Variable References

2009-12-18 Thread Serdar Tumgoren
> Can someone please let me know how to read a file one record at a time (just > say fixed block for now - see small example below) and assign columns to > fields.  Then reference the field names with if-then-else logic. > > Sample Fixed Block File: > > John98762 > John82634 > John11234 > Hi John,

[Tutor] Field/Variable References

2009-12-18 Thread John Filben
Can someone please let me know how to read a file one record at a time (just say fixed block for now - see small example below) and assign columns to fields.  Then reference the field names with if-then-else logic. Sample Fixed Block File: John98762 John82634 John11234 Thank you.  John Filben