COM API: BUG: 4.0dB4: LogosDataType.SortTitle should be ShortTitle

Page 1 of 1 (4 items)
This post has 3 Replies | 1 Follower

Posts 1367
JimTowler | Forum Activity | Posted: Wed, Jun 16 2010 2:12 AM | Locked

Error in name of LogosDataType.ShortTitle Property as seen by VB.NET 2010 Object Browser.

Posts 1367
JimTowler | Forum Activity | Replied: Wed, Jun 16 2010 3:03 AM | Locked

OK - maybe this one really is SORT, as in put in some kind of order.

I'll go hide under my rock again ... Huh?

Posts 60
LogosEmployee
Ed Ball (Faithlife) | Forum Activity | Replied: Wed, Jun 16 2010 10:38 AM | Locked

You are correct – SortTitle can be used to properly sort a list of data types by title.

For example, the Title of the ApostlesCreed data type is “The Apostle’s Creed”, but the SortTitle is just “Apostle’s Creed”. You'd sort data types by the latter so that all of the data type titles that start with “The” don't sort together.

var dataTypes = new[] { "Bible", "ApostlesCreed", "LouwNida", "CanonsOfDort" }
    .Select(name => app.DataTypes.GetDataType(name))
    .OrderBy(dt => dt.SortTitle);
foreach (var dataType in dataTypes)
    Console.WriteLine(dataType.Title);
Posts 1367
JimTowler | Forum Activity | Replied: Wed, Jun 16 2010 1:52 PM | Locked

Thanks Ed (and the other post too).

- Jim T.

Page 1 of 1 (4 items) | RSS