omegastripes / VBA-JSON-parser

Backus-Naur Form JSON Parser based on RegEx for VBA
GNU General Public License v3.0
108 stars 44 forks source link

Change all Dictionary references to specify Scripting.Dictionary #13

Closed hollysmoke closed 4 years ago

hollysmoke commented 4 years ago

Avoids conflicts with Office

omegastripes commented 4 years ago

@hollysmoke Thanks for the input. What is the exact conflict? Could you please share some more info? I want to note, that currently the type is specified as Dictionary but not Scripting.Dictionary to make the code compatible with VBA-Dictionary on Mac, and use it by simply inserting the reference, with no code change.

hollysmoke commented 4 years ago

@omegastripes If I leave it at Dictionary the JSON.bas library will not compile see screenshot: image I get the error "Invalid use of New keyword" Here is a screenshot of the current References: image I suspect the Word 15.0 object library

Hope this helps

hollysmoke commented 4 years ago

@omegastripes I have confirmed that Word 15.0 has a Dictionary object: image

hollysmoke commented 4 years ago

@omegastripes However if I move the Scripting Runtime ahead of Word then VJSON compiles Dictionary without error: image