See the example above,
Sometimes the line may have a middle initial included, and other times it does not. Sometimes it has the last field 'OUT' and other times it does not. That throws the whole arrItems numbering out the door. Last name and First name never change, but there is sometimes a middle initial between first name and gender (M,F,O), is there a way to have it search the string for the date to dynamically assign arrItems? It would also allow me to let the script understand that the Gender is ALWAYS one field before the date. Therefore, the constants for creating the UID would be %arrItems_2%, %arrItems_3%, %1 field before date%, %date%.
So far, arrItems are numbered from :
Code: Select all
Let>k=1
Label>start
ReadLn>c:\testwrite.txt,k,line
If>line=##EOF##,finish
//Message>line
Let>data=%line%
Let>comma=,
Separate>data,comma,arrItems
MidStr>arrItems_2,1,4,mylast
MidStr>arrItems_3,1,3,myfirst
Let>UID=%mylast%%myfirst%%arrItems_4%%arrItems_5%
WriteLn>c:\testwrite.csv,nWLNRes,%UID%%comma%%data%
Let>k=k+1
Goto>start
Label>finish
Many Thanks in advance!!!!
Jesse
Thanks!
[/code]