This is the reason for my index issue thread earlier. It took some looking into but i believe this is the problem.
I get my data from a website which allows me to save the data to an excel file in my HD. The Excel Spreadsheet does have formatting (colored rows, bold fonts, etc..). When I export to a tab delimited file and subsequently append into a dbf, my indexes don't seem to respond properly. Well I did some messing around, and every field has a character at the end of the value that comes out to an asc of 160. It actually appears to be a space, but when i count the number of characters in the field it comes out to 10, but len(alltrim()) comes out to 11. weird, huh?
Well, I tried going directly from Excel to DBF, and when viewing the DBF, this last character actually is actually represented as a ÿ
YUCK! now i suppose i could just go field through field row by row and replace each field with len(field)-1, but I was just curious if anyone else has seen something like this?
I get my data from a website which allows me to save the data to an excel file in my HD. The Excel Spreadsheet does have formatting (colored rows, bold fonts, etc..). When I export to a tab delimited file and subsequently append into a dbf, my indexes don't seem to respond properly. Well I did some messing around, and every field has a character at the end of the value that comes out to an asc of 160. It actually appears to be a space, but when i count the number of characters in the field it comes out to 10, but len(alltrim()) comes out to 11. weird, huh?
Well, I tried going directly from Excel to DBF, and when viewing the DBF, this last character actually is actually represented as a ÿ
YUCK! now i suppose i could just go field through field row by row and replace each field with len(field)-1, but I was just curious if anyone else has seen something like this?