Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error with NEWOBJECT()
Message
From
10/04/2008 23:19:27
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
09/04/2008 08:33:19
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
MySQL
Miscellaneous
Thread ID:
01308856
Message ID:
01309872
Views:
21
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform