Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SPT brings back values with spaces between characters
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01381074
Message ID:
01381083
Vues:
75
This message has been marked as the solution to the initial question of the thread.
The field in remote database is Unicode. That's what VFP brings back. STRCONV(6) should be able to convert it to ANSI.
Another option is to upgrade to VFP9 and use new SYS(987) to turn on automatic conversion between Unicode and ANSI.

>
>I've got an issue I haven't seen before. Using SPT to get data from a third-party database. The query runs and brings back the results, but in VFP (Version 8), the data has extra spacing between each character. So the word ALEVE looks to foxpro like A L E V E
>
>I have attached a screen shot with debugger running, the same query in SA and the code that I'm calling. I'm guessing this is some kind of unicode issue. The database is SQL Server 2000.
>
>The field is 800 characters so it get returned as a memo, but that hasn't bothered me before. Since I don't have control of this database or the data, I'm trying to figure a way around this.
>
>
>Thanks for any advice
>
>Kirk
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform