I can’t imagine why. Array will attempt to build an array that best matches its parameters. Given a mix or where each element is a Variant, it will build a Variant array.
Getting json back and using jsonitem and looping through it. So are you saying if it sees integer values, or dates, it will try to cast them as something else on it’s own? Or for instance that CLICK value, is a number in the database, that the json is generated from, it will try and interpret that as an integer value? Because the variable holding the json at first is a String.
[quote=304945:@Kem Tekinay]I’m saying the Array operator, specifically, will attempt to determine the type of array it should generate based on its parameters.
Thanks again for explaining it in more detail. That is actually what I figured you were saying to begin with. Just doesn’t make sense where I am also using it in another project, since it is very similar. But, I get it now, and appreciate the answers.
BTW, while Array tries to guess at the type of array to create, it’s very easy to create helper functions that are specific. For example:
Function StringArray (ParamArray values() As String) As String()
return values
End Function
Function VariantArray (ParamArray values() As Variant) As Variant()
return values()
End Function