Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error with NEWOBJECT()
Message
De
11/04/2008 17:30:20
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
11/04/2008 16:09:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
MySQL
Divers
Thread ID:
01308856
Message ID:
01310104
Vues:
22
>>> the code once more revealed what the problem was. The syntax errors were occurring in places where there were string constants that contain characters in the upper-ASCII range -- which are often used as "lead-in" characters for double-byte sequences. Essentially what was happening was whenever the character immediately preceding the closing quote was being intepreted as a "lead-in" for a double-byte character, the closing quote would get "eaten" -- thus resulting in the syntax error.
>>
>> So you padded it with an extra character, or what was the solution?
>We side-stepped the problem by using CHR() (rather than entering the string directly with ALT+nnn). For example, wherever we had "©" we simply used CHR(169) instead. And of course, we not only needed to change the PRGs, but also in SCXs, FRXs, DBCs, etc...

Lots of work... although, this being Fox, I assume you wrote some tools to help you there.

Nowadays, I'd probably use varbinary constants. The only reason I'm not using them more is the VFP8 version I still have to maintain here and there, but that should go away soon.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform