Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange box or dark verticle line in data
Message
From
20/03/2006 06:10:12
 
 
To
19/03/2006 20:07:51
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01105707
Message ID:
01105755
Views:
25
Hi,

The square box symbol can represent any non-printable character, the vertical bar will code may depend on local settings. To find out which they are try something like:
FOR i = 1 TO LEN(fieldname)
 ch = SUBSTR(x,i,1)
 ? ASC(ch),ch
ENDFOR
To get rid of them:
REPL ALL fieldname WITH CHRTRAN(fieldname,CHR(n)[+CHR(n)..],"")
HTH,
Viv


>I am seeing a few either boxes or dark vertical bars amidst data in a dbf file. I think these are some control character that has been inserted into the file. The file is imported from some mapping software. Is there a way to search for this character? The ASC(FIELD) of this returns 0. I can export to a .txt file and the field appears as a box. I could do the search here also if I knew what the character was. I'd just like to search and remove all of these characters.
>
>thanks
>
>bonnie
Previous
Reply
Map
View

Click here to load this message in the networking platform