Considerations for Declaring Collections
You must declare all collections for C/C++ and COM as objects, or else you receive errors at runtime.
For example if you're using RegionalSettings, include the following your declarations for a VB program:
Dim oRegionalSettings As ObjectThen, use the following code to populate this variable:
Set oRegionalSettings = oCISession.RegionalSettings
oRegionalSettings.LanguageCd = "GER"