04-07-2011, 02:29 PM
LTee Wrote:Hi everyone!This has already been answered. Strings are a different data type (Dynamic) and cannot be statically initialized (yet). But since many (ahem :roll users are asking for it, I will include this syntax in future releases (if it can be done; it's completely different to initialize a string than an scalar variable).
Should this work?
Code:DIM x as String = "test"
I get the following error when I try to compile:
Code:Initializer expression is not constant.
Doing this instead is fine:
Code:DIM x as String: x = "test"
I'm using the latest 1.2.8s696, by the way.