| |
bam229bam
Posts: 1
Score: 0
Joined: 10/1/2004
From:
Status: offline
|
I am receiving a flat file that is delimited by "|". I need to remove the spaces in the data field. Please let me know what I am doing wrong. Thanks! I have tried the following: strLine = objReadInputFile.Readline arrRowData = Split(strLine, "|") For i = LBound(arrRowData) to UBound(arrRowData) 'Tried the following things that don't work strTrimRowData1 = Replace(CStr(arrRowData(i)), " ", "") strTrimRowData2 = Trim(CStr(strTrimRowData)) strTrimRowData3 = Trim(strTrimRowData) Wscript.Echo strTrimRowData1 Wscript.Echo strTrimRowData2 Wscript.Echo strTrimRowData3 Next
|
|