|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sat Feb 24, 2007 3:58 am
Variable autotype problem... |
Is there a problem with variables setting autotypes to incorrect ones? Every time I put in a variable, it tends to go to String (expanded) instead of integer, and this creates a slight problem when some of my scripts require it to be read as an interger... In fact, some of my %evals and #MATH functions don't work correctly because of this... So, is this a known problem, or am I missing something?
Charneus |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Sat Feb 24, 2007 6:25 am |
Yes this is a known bug. The way around it to explicitly cast your variable to the one needed using the %int, %float or similar function.
|
|
_________________ Asati di tempari! |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sat Feb 24, 2007 6:44 am |
Thanks for the suggestion. I wasn't sure if it was something I was doing wrong, or if it was. I'll start using %int for it now. :)
Charneus |
|
|
|
|
|