April 18, 2024, 01:38:52 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Maximum number of characters allowed for a variable name

Started by billhsln, February 12, 2023, 07:17:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

billhsln

I have searched the documentation and can't seem to figure out what is the maximum number of characters allowed for a variable name.  Also, I know I can use periods (.), but what other characters are allowed?

Thanks,
Bill
When all else fails, get a bigger hammer.

LarryMc

As for the latter part of of your question any ASCII character from 32 up work I believe.

As for the length of a variable name. I just made a quick test program with a variable name 156 characters long and it compiled and ran fine.
If you want variable names longer than that you're...l....

Remember when we use to put $ ON THE END OF ALL STRING NAMES. you're free to do that if you want to.
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

billhsln

Thank you.  So far what I have is a max of 54, but didn't want to actually use that many characters.  Will see about trimming them down.  These are color names and would be used to add constants to programs.

Thanks again,
Bill
When all else fails, get a bigger hammer.