Problem: String is broken into 2 parts within a delimeter.
Goal: To keep each String/Segment in tact regarless of Alpha/Numeric.
I have a .csv file with 26 segments (commas). This file contains customer data: PO#, Order#, Carton ID, Address 1, Address 2, Address 3, etc.
I've written code to capture all 26 segments as: Input #1, Seg1, Seg2, ... ,Seg26. The variables work fine until it encounter a string with Numeric first then Alpha within the same segment.
For this example we have a string such as (...,187 Main Street, PO Box 369,...)
Seg4 = Address <187 Main Street>
Seg5 = PO Box <PO Box 369>
The Segment Variables in Input #1, get shifted when it encounters the numeric portion of the address...so the result becomes:
Segment4 = 187
Segment5 = Main Street
Segment 6 = PO Box 369.
So on my next loop when ReadLine is executed...all the variables are shifted and I can't focus on the specific segment that I need to do something to it.
It delimits when it encounters Numeric then Alpha within the string, but accepts the entire string into the variable when its Alpha then Numeric within a delimeter.
Any suggestions how I can keep the entire string in tact within each delimeter?
Thanks!
Mark
Goal: To keep each String/Segment in tact regarless of Alpha/Numeric.
I have a .csv file with 26 segments (commas). This file contains customer data: PO#, Order#, Carton ID, Address 1, Address 2, Address 3, etc.
I've written code to capture all 26 segments as: Input #1, Seg1, Seg2, ... ,Seg26. The variables work fine until it encounter a string with Numeric first then Alpha within the same segment.
For this example we have a string such as (...,187 Main Street, PO Box 369,...)
Seg4 = Address <187 Main Street>
Seg5 = PO Box <PO Box 369>
The Segment Variables in Input #1, get shifted when it encounters the numeric portion of the address...so the result becomes:
Segment4 = 187
Segment5 = Main Street
Segment 6 = PO Box 369.
So on my next loop when ReadLine is executed...all the variables are shifted and I can't focus on the specific segment that I need to do something to it.
It delimits when it encounters Numeric then Alpha within the string, but accepts the entire string into the variable when its Alpha then Numeric within a delimeter.
Any suggestions how I can keep the entire string in tact within each delimeter?
Thanks!
Mark