Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
const as string?
#6
programandala.net Wrote:I guess it has something to do with strings, not with CONST, because the same error happens with DIM in this line:

dim recordPlayerName as string = "Lutero"
As britlion said, this is not allowed with strings. The reason for this is that unlike numeric types, strings can change its size during runtime and have a different internal compiler treatment (strings are more like C or Pascal; in fact they're Pascal strings). I will try to workaround this in the future.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)