Issue with ITableSort interface in ArcObjects .NET 10.4 SDK

4854
8
Jump to solution
05-12-2016 12:58 PM
New Contributor II

I am having an issue with the ITableSort interface whilst migrating a project from VS 2010 using the ArcObjects .NET 10.2 SDK into VS 2015 using the ArcObjects .NET 10.4 SDK.

I have code that uses the ITableSort.Ascending property but this now says it is an unsupported type in 10.4. However in the help http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#ITableSort.htm it says it is still available. Has anybody else come across this?

Cheers

Glynn

Reply
0 Kudos
1 Solution

Accepted Solutions
New Contributor III

This is a new bug in 10.4 (BUG-000095459). We have Technical Article 000001060 talking about the relevant issues http://support.esri.com/technical-article/000001060

There are many interface properties which have input parameters (typically the parameters are indexes) that are affected in ArcObjects 10.4 Visual Studio 2015 VB.NET, like ITableSort, IFieldsEdit, etc. Workaround for VB.NET would be the same as suggested in Article 000001060.

This bug is fixed in 10.5.1 (check bug status: http://support.esri.com/bugs/nimbus/QlVHLTAwMDA5NTQ1OQ==).

View solution in original post

8 Replies
New Contributor II

Further to this, I should add that I am using VB.NET. It looks to be still available when using C#.

Reply
0 Kudos
New Contributor III

This is a new bug in 10.4 (BUG-000095459). We have Technical Article 000001060 talking about the relevant issues http://support.esri.com/technical-article/000001060

There are many interface properties which have input parameters (typically the parameters are indexes) that are affected in ArcObjects 10.4 Visual Studio 2015 VB.NET, like ITableSort, IFieldsEdit, etc. Workaround for VB.NET would be the same as suggested in Article 000001060.

This bug is fixed in 10.5.1 (check bug status: http://support.esri.com/bugs/nimbus/QlVHLTAwMDA5NTQ1OQ==).

View solution in original post

New Contributor II

Thanks! I also got around it by keeping my code in VS 2015 (VB.NET) and calling another DLL I wrote in C# that used the ITableSort interface.

New Contributor III

Hi, is there a fix on this. Does 10.5 handle this? 

Reply
0 Kudos
New Contributor II

Hi, there was no fix in 10.4. What I ended up doing was a DLL in C# that handled the iTableSort interface. I am uncertain if the issue is sorted in 10.5.

Cheers

Glynn

New Contributor III

Hi,

Thank you for the answer. I ended up with a C# dll handling the ITableSort. Worked fine.

Harald.

Reply
0 Kudos
New Contributor II

Glad it worked for you ☺.

Cheers

Glynn

Reply
0 Kudos
Occasional Contributor

The IQueryFilterDefinition interface is often easier to use if you are just trying to sort. 

IQueryFilterDefinition.PostfixClause Example

Reply
0 Kudos