Aller au contenu

Photo

How many characters can the name of a global variable have?


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
How many?

#2
kamal_

kamal_
  • Members
  • 5 260 messages
In all likelihood it's 2 to the power of x, minus 1. Probably either 127 or 255. I haven't run into the limit, and I prefer more descriptive long form variable names rather than abbreviating.

#3
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
Great, thanks Kamal. What is the longest you have done? Have you passed 64 yet?

#4
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
I just tried using a variable with 35 characters and my check quit working and I used my debug functions to determine the variable wasn't updating. I reduce the name to 20 or so characters and it started working. I wonder if globals have the same 32 limit as script names and convo names.