bchappell

Type Mismatch error in VBA for ArcGIS 10

Discussion created by bchappell on Aug 6, 2010
Latest reply on Nov 20, 2012 by agray1
Just trying out some of our old VBA code ArcGIS 10 and getting a type mismatch error where I should NOT be getting one.

Here is the code:
Dim DS as IDataSet
Set DS = MyTable
Dim TableName As IName         
Set TableName = DS .FullName

The error is thrown at "Set TableName = DS.FullName"
Where TableName is IName and DS.FullName is IName.
This should not throw a Type Mismatch error but it is, and only in ArcGIS 10; all other previous versions work.

Outcomes