General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
>>I imported data from excel to a table.
>>some fields have spaces on the left side. I replaced the field by ALLTRIM(field) but the left space did not go away as it should do.
>>
>>Then, I check for the LEFT(field,1) =" " but it failed. I can see the empty space but I don't know why VFP does not think it is a space. Any idea?
>>
>>Mo
>
>It must be some unprintable character.
>
>?asc(left(field,1))
It is ASCii 160. how to get rid of it? I tried STRTRAN() with TRIM() but it did not fix it.
Ooops. yes it worked. REPLACE field WITH alltRIM(STRTRAN(field,chr(160),""))
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only