When writing the string to the object it will turn into a float number.
No, when using the variable in an expression in which it is used a number it will cache a float.
Objects don't have the capability to store both a number and a string as a key or value. Since numbers are more memory-efficient, if a variable has both, the number is used
When an expression is required to evaluate to true or false (such as an IF-statement), a blank or zero result is considered false and all other results are considered true
Edit: wrong quote
Another way to examplify,
Code: Select all
string := "0.0"
msgbox ; doesn't happen
But why is it not converted, if I do this?:
String != ""
is string compairson, it doesn't require the number to cached. For example.
String+0 != ""
will cache it.
You can do
before storing it in the object to disable the caching, consequently storing it as a string, that is,
It is messy, v2 is better, but still, the
in the above example is not shown in v2 either