Thread: Subs parameters
View Single Post
  #11 (permalink)  
Old 01-22-2010, 11:51 AM
agraham's Avatar
agraham agraham is offline
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by mjcoon View Post
Yes, the relaxed implicit-variant treatment of local variables does not work for arrays. This is because all elements of the array have to have the same variant for the indexing mechanism to work
You are making it sound much more complicated than it really is, it is really very simple. Normal variables, both global and local are just string variables. Arrays of the type they are declared as or strings if no type is specified. Numeric operations are always performed on Doubles and variables and arrays are coerced to and from Doubles when required for arithmetic operations. Boolean values are represented as the strings "true" and "false".
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote