Author Topic: how to create a group?  (Read 2842 times)

0 Members and 1 Guest are viewing this topic.

www1970

  • Guest
how to create a group?
« on: August 10, 2006, 04:08:48 AM »
I use
"   Dim newGroup As Group = New Group("Title", False)"
to create a group, but  after this sentense, error message "return HRESULT E_FAIL when load COM"
why?

MickD

  • King Gator
  • Posts: 3619
  • (x-in)->[process]->(y-out) ... simples!
Re: how to create a group?
« Reply #1 on: August 10, 2006, 04:15:32 AM »
I'll need to see a bit more code before I can help, thanks.
"Short cuts make long delays,' argued Pippin.”
J.R.R. Tolkien

www1970

  • Guest
Re: how to create a group?
« Reply #2 on: August 11, 2006, 08:36:04 PM »
tanks! I have solved.

                Dim newGroup As Group = New Group("Title", True)
                Dim dict As DBDictionary = trans.GetObject(db.GroupDictionaryId, OpenMode.ForWrite, True)
                dict.SetAt("001", newGroup)