Constants with & prefix and variables with % trailer
Posted on 2004-04-23
As I'm broadening my VB knowledge, I came across things like this a couple of times:
Private Const GENERIC_READ = &H80000000
this is usually used with API calls it seems
and things like this:
For i%=0 to 100
Array(i%) = "Lipsum"
Now I suppose the first has something to do with hexadecimals. Just a wild guess, but I'd like to know more about that.
The second one is a puzzler. I used it a couple of times myself, to dynamically create control arrays, but what it means... You got me.