Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using EuroAnsi in OleDb
Message
 
 
To
29/04/2008 09:06:08
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01313612
Message ID:
01313766
Views:
6
This message has been marked as the solution to the initial question of the thread.
>>I think you you can use CHRTRAN instead.
>
>Thanks, but, what kind of approach can I use with CHRTRAN() for this?

Run following code in VFP and you 'll have CHRTRAN command on the clipboard. You can post it in your code and modify to your needs.
RESTORE FROM (HOME() + "EUROPEAN.MEM")
lcFrom = ""
lcTo = ""

FOR i=1 TO 255
	IF CHR(i) <> SUBSTR(m.euroansi, i,1)
		lcFrom = lcFrom + CHR(i) 
		lcTo = lcTo + SUBSTR(m.euroansi, i,1)
	ENDIF	
ENDFOR

*? lcFrom
*? lcTo

_CLIPTEXT = [CHRTRAN(myfield, "] + lcFrom +[", "] + lcTo + [")"]
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform