ID:144180
 
Code:


Problem description: :11:error::expected a constant expression

It keeps happening and it's on the status code for the code. Any helps on what it means?

Hugna wrote:
It keeps happening and it's on the status code for the code.

OK, any helps on what THAT means? lol.
You see, the trend here, is to USE that pre-made code box there, and put the relevant block of code there, specifying which line(s) the error(s) occur on.

Anyway, basically, you must be trying to set a variable [definition] at compile-time to values that can only be calculated at runtime (ie calling most procs, using other variables, etc).
You can only use [most-] procs and vars at runtime. If you want the variable to be initialized with your value, set it on the object's New() proc, which is called at run-time (of course) just after the object is created.