Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XmlToCursor() problem
Message
De
16/01/2015 13:01:36
 
 
À
16/01/2015 09:17:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Divers
Thread ID:
01613703
Message ID:
01613752
Vues:
51
>Oddly, I found that the text in one of the source cursor row/columns contained a series of Chr(1) characters, and this is what seemed to be making it fail.
>
>All the "X" in this sample indicate the series of Chr(1) characters in the resulting output XML file, and that made it fail when read back in.
>
>
>_memberdata = XXXXXXXXXXXXXXXXXXXXXXX  <VFPData><memberdata name="cpartcountsource" display="cPartCountSource"/></VFPData>
>
>
>
>I have no idea where those characters came from in this _memberdata property of the form scx in the Code column, which is the text I had dumped to a cursor row.
>

Hi Matt!

It is the normal behaviour. When memberdata have more than 255 chars, VFP pads with 517 chr(0) characters at the left. I don't know why, and it is a strange behaviour, but it works that way. May be it is related to a design limitation or a workarround.

I discovered it while developing FoxBin2Prg and had to emulate it to generate a compatible binary.


Regards!
Fernando D. Bozzo
Madrid / Spain
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform