No idea what manual you are talking about... do you have a link?

Try this... if it doesn't work, do a board search for rootdse or defaultnamingcontext, as I know it on here somewhere.

 Code:
Function ReadNC()
  Dim $Root
  $Root = GetObject("LDAP://rootDSE" )
  If @ERROR = 0
     $ReadNC = $root.get("DefaultNamingContext")
  Endif
EndFunction



[edit: I found the link: http://www.kixtart.org/manual/Commands/Function.htm and yes that is a terrible example. I'm not sure who is responsible for it, but it is wrong. I would hope the other examples are better.]


Edited by Allen (2010-07-08 09:48 PM)