The Novell Controls for ActiveX and Visual Basic:
Creating Directory Entries

Lecture Hall
CampusblankAdminblankLibraryblankLabsblankLecturesblankTestingblankTransit Ctr
blank
PreviousNextHome Download SourceGlossary


Creating Directory Entries

There are 4 steps to creating a new NDS directory entry:

  1. Declare an object of type NWEntry.
Dim newEntry As NWEntry
  • Create an object of the type you want to create and give it a common name.
  • Set newEntry = NWDir1.Entries.Add("User", "Laura")
    
  • Assign values to the entry's mandatory fields and any optional fields you want to set. For example, for a User entry, the Surname field is mandatory. If you do not set the Surname field, the entry will not be added to the directory.
  • Call newEntry.SetFieldValue("Surname","Petrie")
    
  • Update the entry in the directory. The new entry is not added to the directory until you call its Update method.
  • Call newEntry.Update
    


    PREVIOUSblankTop of PageblankNEXT

        Contact Us | Feedback | License | © 2000 Novell, Inc.
    Novell > DeveloperNet > Developer Support
    Novell Developer Kit > DeveloperNet University