Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error with NEWOBJECT()
Message
De
10/04/2008 23:19:27
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
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:
01309872
Vues:
20
>>Best if you use VFP valid identifier characters only.
>>
>>uses "_" to put a library on the bottom of the list
>
>I did not know about VFP valid identifier characters. How do I know a character is a VFP valid identifier?

Actually, I'd apply for an extension here. An identifier can't have a digit in the first position, but beyond that, any digit, or anything that returns ischar(lcChar)=.t. in the current codepage (i.e. whatever cpcurr() returns) is valid.

FOR променљива=1 TO 40
? променљива
ENDFOR

If you compile this as 1251, it will work (I did this in 1250 since FP2.6, I had variables with East-European diacriticals in them, and the code still works).

Now with Cyrillic it isn't perfect, the beautifier doesn't know that Ч is uppercase ч, but it knows Д and д - actually Ч (which is shared among several Cyrillic languages) is not a proper character, while љ, which is Serbian only, is OK. You may try this as an extra layer of obfuscation - nobody will have a clue what you're doing ;).

Did anyone try Chinese, Korean, Kanji variables?

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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform