MSomething = value ' value is a primitive Public Property Let Something(ByVal value As Variant) This is why you have these keywords in property mutator definitions though: Private mSomething As Variant The Let keyword can be used to assign values, but the Let keyword is pretty much obsolete/redundant. Is it because that in the first case, there is further requirement to modify the returned object so it has to be passed by address (like in C++ we use &)?Īs the linked Q&A says, Set is used in VBA to assign an object reference. "Set" will copy the address of the return variable of json_ParseValue, and assignment simply makes another copy of the return variable. What I don't get is the difference between Set and Assignment. In the function that dumps JSON objects (starting with "", and a Collection to hold whatever between "", and if the parser reads something other than those two, then it is just a value, could be Boolean or String or Integer, etc. I'm reading the source code of VBA-JSON, which is located at:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |