Dim çà as Integer
This VBA line compiles fine, so ç and à are acceptable.
abcdefghijklmnopqrstuvwxyz are clearly OK too. 0123456789 and _ are OK
as long as they don't come first.
But what I need is a complete list. Does anyone have it, or know where
I can get it?
Why do I need this? See http://invisiblebasic.sourceforge.net/, an open
source Excel/VBA source obfuscation utility--I need a list of such
characters so I can properly recognize variable names regardless of if
the VBA code is created by French or English or ... speaking VBA
coders.
I searched around but could not find this list anywhere...please help.
John
Dim çà as Integer
is the same as
Dim ÇÀ as Integer
--
Enjoy,
Tony
"John Gunther" <johncurt...@yahoo.com> wrote in message
news:1141871394....@i40g2000cwc.googlegroups.com...
Sub Test_128_to_255()
Dim € ,ƒ,,...†‡ˆ‰Š‹Œ
Dim Ž ''""·--˜™š›
Dim œ žŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³
Dim ´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌ
Dim ÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßà
Dim áâãäåæçèéêëìíîïðñò
Dim óôõö÷øùúûüýþÿ
€ ,ƒ,,...†‡ˆ‰Š‹Œ = 1
Ž ''""·--˜™š› = 2
œ žŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³ = 3
´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌ = 4
ÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßà = 5
áâãäåæçèéêëìíîïðñò = 6
óôõö÷øùúûüýþÿ = 7
Debug.Print € ,ƒ,,...†‡ˆ‰Š‹Œ
Debug.Print Ž ''""·--˜™š›
Debug.Print œ žŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³
Debug.Print ´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌ
Debug.Print ÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßà
Debug.Print áâãäåæçèéêëìíîïðñò
Debug.Print óôõö÷øùúûüýþÿ
End Sub
This uses all of the characters in the range you mentioned and compiles
and runs (printing 1, 2, ... 7) just fine.
Thanks for the info....I never would have guessed that, say, ©,
represents a valid VBA variable name.
Any sense if this character range will remain valid in future VBA
versions? I don't want to generate obfuscated variables using such
characters only to find MS has changed the rules later by excluding
some of the ones no human language ever uses in real words, thus
breaking previously obfuscated code. But using the full character range
you mentioned will make the obfuscated code smaller--hence (a little)
better.
John
--
Enjoy,
Tony
"John Gunther" <johncurt...@yahoo.com> wrote in message
news:1141963048.3...@i40g2000cwc.googlegroups.com...
> I was sure you must be wrong because I figured some of those characters
> look so weird that they must have been excluded...so I wrote this test
> program:
>
> Sub Test_128_to_255()
>
> Dim ? ,f,,...??^?S > Dim Z ''""·--~Ts>
> Dim o zY ¡¢£¤¥¦§¨©ª«¬®¯°±²³
> Dim ´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌ
> Dim ÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßà
> Dim áâãäåæçèéêëìíîïðñò
> Dim óôõö÷øùúûüýþÿ
>
> ? ,f,,...??^?S > Z ''""·--~Ts> = 2
> o zY ¡¢£¤¥¦§¨©ª«¬®¯°±²³ = 3
> ´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌ = 4
> ÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßà = 5
> áâãäåæçèéêëìíîïðñò = 6
> óôõö÷øùúûüýþÿ = 7
>
> Debug.Print ? ,f,,...??^?S > Debug.Print Z ''""·--~Ts>
> Debug.Print o zY ¡¢£¤¥¦§¨©ª«¬®¯°±²³
Klaus
"Tony Jollans" <My Forename at My Surname dot com> schrieb im Newsbeitrag
news:%231oAuTB...@TK2MSFTNGP09.phx.gbl...
Just read in some other newsgroup how it took some French guy ages to find
that é is problematic in the Japanese version.
:-/ Klaus
--
hť}
"Klaus Linke" <in...@fotosatz-kaufmann.de> wrote in message
news:uKgvJ6KR...@TK2MSFTNGP09.phx.gbl...
Very interested to hear the report that "é is problematic in the
Japanese version".
Based on our discussions, I'm now planning to modify Invisible Basic so
that it RECOGNIZES 128-255 as valid characters in VBA identifiers if
they appear in the original (unobfuscated) code, but I'll play it safe
and only allow, a-z, 0-9 _ in GENERATED obfuscated variable names. A
bit more work to make this distinction, and it makes the obfuscated
code a little bigger, but since I can't be 100% sure introducing such
characters into already working code will not break it, this seems the
wisest course.
Your comments and information were very helpful in resolving this
problem so (unless you have a problem with me doing so) I'll mention
your assistance in documentation for the next Invisible Basic release.
John