L
LOtto
What I'm looking for is a simple loop that will extract characters from a string until it hits the "-" character, then stops. I have a list that looks like this and I want to cut out the file path so I can sort:
VA01 09242007 P11 - G:\Claims\WINSHUTTLE\VA01 runner Debit memo SPECIAL WITHOUT GC 108 22.TxR
VA01 09242007 P11 - G:\Claims\WINSHUTTLE\VA01 runner Debit memo SPECIAL WITHOUT GC 108 22.TxR
VA01 09242007 P11 - C:\Users\tee4283\Desktop\VA01 runner loop.TxR
VA01 09242007 P11 - G:\Claims\WINSHUTTLE\VA01 runner Debit memo SPECIAL WITHOUT GC 108 22.TxR
VA01 09242007 P11 - G:\Claims\WINSHUTTLE\VA01 runner Debit memo SPECIAL WITHOUT GC 108 22.TxR
VA01 09242007 P11 - C:\Users\tee4283\Desktop\VA01 runner loop.TxR
Result would be:
VA01 09242007 P11
VA01 09242007 P11 - G:\Claims\WINSHUTTLE\VA01 runner Debit memo SPECIAL WITHOUT GC 108 22.TxR
VA01 09242007 P11 - G:\Claims\WINSHUTTLE\VA01 runner Debit memo SPECIAL WITHOUT GC 108 22.TxR
VA01 09242007 P11 - C:\Users\tee4283\Desktop\VA01 runner loop.TxR
VA01 09242007 P11 - G:\Claims\WINSHUTTLE\VA01 runner Debit memo SPECIAL WITHOUT GC 108 22.TxR
VA01 09242007 P11 - G:\Claims\WINSHUTTLE\VA01 runner Debit memo SPECIAL WITHOUT GC 108 22.TxR
VA01 09242007 P11 - C:\Users\tee4283\Desktop\VA01 runner loop.TxR
Result would be:
VA01 09242007 P11