CreateViewNavFromCategory - Not Categorized?

How can I get the “Not Categorized” documents from a categorized view navigator?

These don’t compile:

Set nav = view.CreateViewNavFromCategory(null)

Set nav = view.CreateViewNavFromCategory(Nothing)

This doesn’t work:

Set nav = view.CreateViewNavFromCategory(“”)

The only thing I could figure out is:

Set nav = viewClaim.CreateViewNav

Set entry = nav.GetFirst

Do While Not entry Is Nothing

vArray = entry.ColumnValues

If Isarray(vArray) Then

  Print "Category>"+Cstr(vArray(0))

Else

  Print ">Not Categorized<"

  Set entry = nav.GetNextDocument( entry )

  Do While Not entry Is Nothing

    Set doc = entry.Document

    'Process document

    Call doc.Save(True,False)

    Set entry = nav.GetNextDocument( entry )

  Loop

  Goto EndLoop

End If

Set entry = nav.GetNextCategory(entry)

Loop

EndLoop:

Print “DONE”

It’s not pretty. Surely there is an easier way that I’m missing???

Thanks, Neil Rancour

Subject: Set doc= view.getdocumentbykey ( “Not Categoriced”) ?

Set doc = view.getnextdocument(doc)

Not sure if it would work - I tend to change the column value of such views into doing a fixed string when there is nothing in the relevant field. (Reason one: ‘Not Categoriced’ gets translated, and depending on languages it gets sortet in somehwere else, Reason two: If I set it to ‘… Without entry’ or something it gets sortet into the view at the end of the list, where this documents are easier to find - or, in some other cases I do ‘aaa - without entry’ to get them sorted in at the beginning.

To do the long storry short, if it does not work as in the Subject suggested, after returning a value in the view column, it definitely will work