unwillingly I encountered a hard-to-find problem. If you're designing a program which includes the windows.bi or anything else with a lot of prefinied types, there is a bug (or inexpected behavior) if you dimensionate a variable which name is already one of the types. And this is unaffected by a scope block (or function, loop etc.):
Code: Select all
a as string
b as integer
dim x as string = "adkfd"
Dim abc As String = x
dim st as string = abc
The variable works correct, but the LEN and SIZEOF functions ignore it if there's a TYPE of the same name. The problem is, you don't know all types in the header files and if your program doesn't work, that error is one very hard to find.
Is there a possible solution? (Except for changing the name of your variable after a error occurs ...)