IonicWind Software

IWBasic => General Questions => Topic started by: billhsln on February 12, 2023, 07:17:02 PM

Title: Maximum number of characters allowed for a variable name
Post by: billhsln on February 12, 2023, 07:17:02 PM
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
Title: Re: Maximum number of characters allowed for a variable name
Post by: LarryMc on February 12, 2023, 08:23:47 PM
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.
Title: Re: Maximum number of characters allowed for a variable name
Post by: billhsln on February 13, 2023, 08:48:34 AM
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