AndrewMozley
Programmer
There is a DOS application where I am converting the data into records in a VFP database.
In several character fields there may be a sterling £ sign; I see that this is stored as hexadecimal ‘9C’.
If the field is just copied across, when I print the character string it shows as a diphthong (ligature) œ; When browsing it under VFP shows as a vertical black rectangle.
I understand that the character code in a VFP table for this sterling sign should by hexadacimal ‘A3’ and that I can revise my conversion routine, so that in each field in each table where the ‘£’ sign might appear I apply this conversion :
Is there a better way of doing this?
Thanks. Andrew
In several character fields there may be a sterling £ sign; I see that this is stored as hexadecimal ‘9C’.
If the field is just copied across, when I print the character string it shows as a diphthong (ligature) œ; When browsing it under VFP shows as a vertical black rectangle.
I understand that the character code in a VFP table for this sterling sign should by hexadacimal ‘A3’ and that I can revise my conversion routine, so that in each field in each table where the ‘£’ sign might appear I apply this conversion :
Code:
Newtext = CHRTRANC(OldText, CHR(156), CHR(163))
Is there a better way of doing this?
Thanks. Andrew