Author Topic: how to create a group?  (Read 1905 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: 3503
  • (x-in)->[process]->(y-out)
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.
Forth is like the Tao: it is a Way, and is realized when followed.
Its fragility is its strength; its simplicity is its direction - Michael Ham

"First, solve the problem. Then, write the code." John Johnson

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)